Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add $post_id to needs_updating() #74

Closed
billerickson opened this issue Mar 27, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@billerickson
Copy link
Collaborator

commented Mar 27, 2019

You can customize how often Shared Counts refreshes the counts using the shared_counts_update_increments filter (see here).

But you can only specify the global rules - you can't have different rules based on the post type, category, or other attributes of the post.

If we pass $post_id as a parameter to needs_updating() and include it in the filter, you could make posts in a certain category refresh more often than others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.