s2_email_template
The Subscribe2 s2 email template hook.
Description
Parameters (1)
- 0. $this_subscribe2_options_mailtext (unknown)
- The this subscribe2 options mailtext.
Usage
- To run the hook, copy the example below.
- $this_subscribe2_options_mailtext = apply_filters( 's2_email_template', $this_subscribe2_options_mailtext );
- if ( !empty( $this_subscribe2_options_mailtext ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the s2_email_template callback
- function filter_s2_email_template( $this_subscribe2_options_mailtext ) {
- // make filter magic happen here...
- return $this_subscribe2_options_mailtext;
- };
- // add the filter
- add_filter( 's2_email_template', 'filter_s2_email_template', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 's2_email_template', 'filter_s2_email_template', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /classes/class-s2-core.php
- $mailtext = apply_filters('s2_email_template', $this->subscribe2_options['mailtext']);
- $mailtext = apply_filters('s2_email_template', $this->subscribe2_options['mailtext']);