s2_social_buttons
The Subscribe2 s2 social buttons hook.
Description
Parameters (1)
- 0. $social_buttons (unknown)
- The social buttons.
Usage
- To run the hook, copy the example below.
- $social_buttons = apply_filters( 's2_social_buttons', $social_buttons );
- if ( !empty( $social_buttons ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the s2_social_buttons callback
- function filter_s2_social_buttons( $social_buttons ) {
- // make filter magic happen here...
- return $social_buttons;
- };
- // add the filter
- add_filter( 's2_social_buttons', 'filter_s2_social_buttons', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 's2_social_buttons', 'filter_s2_social_buttons', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /classes/class-s2-core.php
- return apply_filters('s2_social_buttons', $social_buttons);