Simple Social Media Share Buttons 7.2.0 has 5 actions and 64 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Simple Social Media Share Buttons fires an action
add_action( 'wp_wpb_sdk_after_uninstall', function( $slug ) {
// Your code runs here.
}, 10, 1 );
// Change a value Simple Social Media Share Buttons is about to use
add_filter( 'ssb_active_network', function( $arr_buttons, $share_counts, $extra_data ) {
// Change $arr_buttons here.
return $arr_buttons;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * 'ssb_active_network' is the filter activated share network. */ apply_filters( 'ssb_active_network', $arr_buttons, $share_counts, $extra_data ); -
/** * 'ssb_button_attrs' filter can be used to change the button attributes. Only * rel and target attributes are allowed to change for now. */ apply_filters( 'ssb_button_attrs', $ssb_btn_attrs ); -
/** * Force loading Simple Social Buttons front assets when automatic detection * misses output (e.g. shortcode inside a Text widget). */ apply_filters( 'ssb_enqueue_front_assets', false ); -
/** * Filter the label shown on the icon-limit overflow trigger button. */ apply_filters( 'ssb_icon_limit_more_label', '+', $extra_data ); -
/** * Filter importable option section ids. */ apply_filters( 'ssb_importable_section_ids', $sections ); -
/** * 'ssb_network_counts' is the filter for applying check is either show network * counts after some amount of share. */ apply_filters( 'ssb_network_counts', $show_count, $share_counts, $extra_data ); -
/** * 'ssb_position_style' is the filter activated share network. */ apply_filters( 'ssb_position_style', $position_style, $theme, $extra_data, $arr_buttons ); -
/** * Filter the resolved SEO meta description before use (e.g. Pinterest). */ apply_filters( 'ssb_seo_meta_description', $normalized, $post_id ); -
/** * Filter the ordered SEO meta description providers. */ apply_filters( 'ssb_seo_meta_description_providers', ssb_get_default_seo_meta_description_providers(), $post_id ); -
/** * The filter to add heading text in SSB sidebar. */ apply_filters( 'ssb_sidebar_before_text', false ); -
/** * The filter to modify Selected Networks of SSB in sidebar. */ apply_filters( 'ssb_sidebar_social_networks', $this->selected_networks ); -
/** * The SEO Framework description filter (legacy / extensibility). */ apply_filters( 'the_seo_framework_description', $description, array( 'id' => (int) $post_id ) ); -
/** * Filter allowed SDK opt-out setting keys for AJAX toggles. */ apply_filters( 'wpb_sdk_allowed_opt_out_settings', $allowed, $this->slug ); -
/** * Filter allowed page slugs for post-opt-in redirect. */ apply_filters( 'wpb_sdk_allowed_redirect_page_slugs', $allowed, $slug, $module ); -
/** * Filter telemetry API base URL for a product. */ apply_filters( 'wpb_sdk_api_endpoint', $endpoint, $slug ); -
/** * Filter products that use a custom opt-in form instead of * wpb-sdk-optin-form.php. */ apply_filters( 'wpb_sdk_custom_optin_slugs', $custom, $slug ); -
/** * Filter slugs that manage their own Opt In/Out plugin row links (not the * SDK). */ apply_filters( 'wpb_sdk_legacy_opt_action_link_slugs', $legacy, $slug ); -
/** * Filter template variables passed to opt-in view. */ apply_filters( 'wpb_sdk_optin_template_vars', $optin_vars, $slug, $module ); -
/** * Append product-specific plugin row links (Settings, etc.) after SDK * opt-in/out. */ apply_filters( 'wpb_sdk_plugin_action_links', $links, $this->slug, $this->module ); -
/** * Filter whether visiting the opt-in page should redirect away. */ apply_filters( 'wpb_sdk_should_redirect_from_optin_page', 'yes' === $decision, $slug, $decision ); -
/** * Yoast's own meta description filter (when practical). */ apply_filters( 'wpseo_metadesc', $description ); -
do_action( 'wp_wpb_sdk_after_uninstall', $slug ); -
apply_filters( 'wpb_sdk_optin_redirect_url', $url, $slug, $optin, $redirect_override ); -
apply_filters( 'ssb_show_admin_bar_purge_all', false ); -
do_action( 'wpb_sdk_bootstrap_module', $slug ); -
apply_filters( 'ssb_advance_fields', $ssb_advanced ); -
apply_filters( 'ssb_buttons_output', $arr_buttons_code ); -
apply_filters( 'ssb_copylink_text', __( 'Copy', 'simple-social-buttons' ) ); -
apply_filters( 'ssb_cpt_visibility_mb', $selected_post_type ); -
apply_filters( 'ssb_fetch_fresh_rate_limit_window', 30 ); -
apply_filters( 'ssb_follow_widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance ); -
apply_filters( 'ssb_inline_fields', $ssb_inline ); -
apply_filters( 'ssb_inline_social_networks', $this->selected_networks ); -
apply_filters( 'ssb_internal_flush_interval_hours', $interval_hours ); -
apply_filters( 'ssb_og_tag', $og_tag ); -
apply_filters( 'ssb_positions_options', array( 'sidebar' => __( 'Sidebar', 'simple-social-buttons' ), 'inline' => __( 'Inline', 'simple-social-buttons' ), 'media' => __( 'Media', 'simple-social-buttons' ), 'popup' => __( 'Popup', 'simple-social-buttons' ), 'flyin' => __( 'Fly In', 'simple-social-buttons' ), ) ); -
apply_filters( 'ssb_purge_all_batch_size', 15 ); -
apply_filters( 'ssb_purge_all_post_types', array( 'post', 'page' ) ); -
apply_filters( 'ssb_purge_recent_limit', $limit ); -
apply_filters( 'ssb_purge_recent_post_types', array( 'post', 'page' ) ); -
apply_filters( 'ssb_setting_fields', $settings_fields, $post_types ); -
apply_filters( 'ssb_settings_panel', $sections ); -
apply_filters( 'ssb_sidebar_fields', $ssb_sidebar ); -
apply_filters( 'ssb_the_content_priority', 12 ); -
apply_filters( 'ssb_the_excerpt_priority', 12 ); -
apply_filters( 'ssb_use_react_admin', false ); -
do_action( 'ssb_wpb68931334_loaded' ); -
apply_filters( "wpb_sdk_{$slug}_optin_view_path", $path, $module ); -
apply_filters( 'wpb_sdk_module_config', $module ); -
apply_filters( 'wpb_sdk_optin_admin_user_id', $admin_id, $slug ); -
apply_filters( "wpb_sdk_optin_logo_url_{$slug}", $logo_url, $module ); -
do_action( 'wpb_sdk_optin_verified', $current_user, $module ); -
apply_filters( 'wpb_sdk_optin_view_path', $path, $slug, $module ); -
apply_filters( 'wpb_sdk_plugin_main_file', '', $slug ); -
apply_filters( 'wpb_sdk_should_cleanup_on_uninstall', true, $slug ); -
apply_filters( 'wpb_sdk_site_used_centralized_sdk_32', false, $slug, $module ); -
apply_filters( 'wpb_sdk_uninstall_option_names', $options, $slug ); -
apply_filters( 'wpb_sdk_uninstall_user_meta_keys', array_values( array_unique( array_filter( $user_meta ) ) ), $slug );
Generated from Simple Social Media Share Buttons's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: