Filters

Filters allow you to modify how Shared Counts works using code. You should place your customizations in a core functionality plugin or use Code Snippets.

shared_counts_admin_services
1 tutorial using this filter
What services are available on the settings page

shared_counts_api_params
1 tutorial using this filter
Customize the global API parameters (currently only contains URL)

shared_counts_default_image
No tutorials yet for this filter
Default image used by Pinterest for generic URLs.

shared_counts_display
No tutorials yet for this filter
Customize what is displayed in the share count area.

shared_counts_display_services
1 tutorial using this filter

shared_counts_display_wrap_format
No tutorials yet for this filter
Customize the wrapping class and format of share count area.

shared_counts_email_body
No tutorials yet for this filter
Body of email used in email modal. Defaults to Post Title and Post Permalink.

shared_counts_email_headers
No tutorials yet for this filter
Email headers used by email modal.

shared_counts_email_labels
No tutorials yet for this filter
Email modal window labels for different fields.

shared_counts_email_modal
No tutorials yet for this filter
Enable email modal window in use cases where the share button is manually being called.

shared_counts_email_subject
No tutorials yet for this filter
Subject used in email modal. Defaults to "Your friend $from_name has shared an article with you"

shared_counts_link
10 tutorials using this filter
An array of elements used to form the share link.

shared_counts_link_url
No tutorials yet for this filter
The URL being shared

shared_counts_load_css
1 tutorial using this filter
Disable the CSS from loading.

shared_counts_load_js
1 tutorial using this filter
Disable the JavaScript from loading.

shared_counts_options
No tutorials yet for this filter
The options used on the settings page

shared_counts_pinterest_image_meta_key
1 tutorial using this filter
Customize the meta keys used for storing image and description data. Useful for retaining data from another social sharing plugin.

shared_counts_query_services
No tutorials yet for this filter
What services are available to be queried for share counts

shared_counts_single
No tutorials yet for this filter
The share count used when the requested service isn't recognized. If you're adding custom services, you'll use this to set the share count for that service.

shared_counts_single_image
2 tutorials using this filter
Image used by Pinterest for singular content (post, page...). Set to Featured Image by default.

shared_counts_site_url
No tutorials yet for this filter
What URL is used if you specify 'site' as the ID. Defaults to home_url().

shared_counts_styles
1 tutorial using this filter
Customize the style options available in Settings > Shared Counts.

shared_counts_theme_locations
3 tutorials using this filter
Specify which hooks/filters are used for the "Before Content" and "After Content" share buttons.

shared_counts_total
No tutorials yet for this filter
Customize what is used as the 'total_count'

shared_counts_update_increments
1 tutorial using this filter
How frequently the share counts are updated.