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