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