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