s2_digest_email

The Subscribe2 s2 digest email hook.

Description

apply_filters( 's2_digest_email', (unknown) $message_post ); 

Parameters (1)

0. $message_post (unknown)
The message post.

Usage

To run the hook, copy the example below.
  1. $message_post = apply_filters( 's2_digest_email', $message_post ); 
  2.  
  3. if ( !empty( $message_post ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the s2_digest_email callback 
  2. function filter_s2_digest_email( $message_post ) { 
  3. // make filter magic happen here... 
  4. return $message_post
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 's2_digest_email', 'filter_s2_digest_email', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 's2_digest_email', 'filter_s2_digest_email', 10, 1 ); 

Defined (2)

The filter is defined in the following location(s).

/classes/class-s2-core.php  
  1. $message_post = apply_filters('s2_digest_email', $message_post); 
  1. $message_posttime = apply_filters('s2_digest_email', $message_posttime);