s2_unsubscribe_button
The Subscribe2 s2 unsubscribe button hook.
Description
apply_filters( 's2_unsubscribe_button', $var );
Parameters (1)
- 0. $var
- __('Unsubscribe', 'subscribe2')
Usage
- To run the hook, copy the example below.
- $var = apply_filters( 's2_unsubscribe_button', $var );
- if ( !empty( $var ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the s2_unsubscribe_button callback
- function filter_s2_unsubscribe_button( $var ) {
- // make filter magic happen here...
- return $var;
- };
- // add the filter
- add_filter( 's2_unsubscribe_button', 'filter_s2_unsubscribe_button', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 's2_unsubscribe_button', 'filter_s2_unsubscribe_button', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /classes/class-s2-frontend.php
- $unsubscribe_button_value = apply_filters('s2_unsubscribe_button', __('Unsubscribe', 'subscribe2'));