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