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