jaredatch / Shared-Counts

WordPress plugin that leverages SharedCount.com API to quickly retrieve, cache, and display various social sharing counts.
GNU General Public License v2.0
47 stars 16 forks source link

Dynamic increase by type #111

Closed egbamddeveloper closed 3 years ago

egbamddeveloper commented 3 years ago

Hello,

It's a perfect app, thanks very much.

I want to increase data dynamic by code or api, how? I see that can i get data by api, but how can i increase it?

Thanks very much Ahmad

billerickson commented 3 years ago

There are a few ways you could update it.

The simplest would be directly updating the post_meta values on the specific posts you'd like changed. Look for the shared_counts and shared_counts_total meta keys.

You can also use the shared_counts_query_api hook to add your own code for retrieving or determining the share count when the counts are updated.

egbamddeveloper commented 3 years ago

Very helpful, Thanks 👍

On Fri, 5 Feb 2021, 3:59 pm Bill Erickson notifications@github.com wrote:

There are a few ways you could update it.

The simplest would be directly updating the post_meta values on the specific posts you'd like changed. Look for the shared_counts and shared_counts_total meta keys.

You can also use the shared_counts_query_api https://github.com/jaredatch/Shared-Counts/blob/develop/includes/class-shared-counts-core.php#L422 hook to add your own code for retrieving or determining the share count when the counts are updated.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaredatch/Shared-Counts/issues/111#issuecomment-774049207, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUIDJZ5SPFE5GE5GO4N3RLS5P2VJANCNFSM4XDFLIAA .