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