s2_digest_email
The Subscribe2 s2 digest email hook.
Description
Parameters (1)
- 0. $message_post (unknown)
- The message post.
Usage
- To run the hook, copy the example below.
- $message_post = apply_filters( 's2_digest_email', $message_post );
- if ( !empty( $message_post ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the s2_digest_email callback
- function filter_s2_digest_email( $message_post ) {
- // make filter magic happen here...
- return $message_post;
- };
- // add the filter
- add_filter( 's2_digest_email', 'filter_s2_digest_email', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- $message_post = apply_filters('s2_digest_email', $message_post);
- $message_posttime = apply_filters('s2_digest_email', $message_posttime);