hook_subscriber_right

The MailPoet Newsletters hook subscriber right hook.

Description

apply_filters( 'hook_subscriber_right', (unknown) $wysija_module, (unknown) $hook_params ); 

Parameters (2)

0. $wysija_module (unknown) => WYSIJA_module::execute_hook('hook_subscriber_right', $hook_params)
The wysija module.
1. $hook_params (unknown)
The hook params.

Usage

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

Defined (1)

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

/controllers/back/subscribers.php  
  1. $this->data['hooks']['hook_subscriber_right'] = apply_filters('hook_subscriber_right', WYSIJA_module::execute_hook('hook_subscriber_right', $hook_params), $hook_params);