s2_admin_email

The Subscribe2 s2 admin email hook.

Description

apply_filters( 's2_admin_email', (unknown) $recipients, (string) $subscribe ); 

Parameters (2)

0. $recipients (unknown)
The recipients.
1. $subscribe (string) => 'subscribe'
The subscribe.

Usage

To run the hook, copy the example below.
  1. $recipients = apply_filters( 's2_admin_email', $recipients, $subscribe ); 
  2.  
  3. if ( !empty( $recipients ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the s2_admin_email callback 
  2. function filter_s2_admin_email( $recipients, $subscribe ) { 
  3. // make filter magic happen here... 
  4. return $recipients
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 's2_admin_email', 'filter_s2_admin_email', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. 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  
  1. $recipients = apply_filters('s2_admin_email', $recipients, 'subscribe'); 
  1. $recipients = apply_filters('s2_admin_email', $recipients, 'unsubscribe');