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