hook_settings_before_save

The MailPoet Newsletters hook settings before save hook.

Description

apply_filters( 'hook_settings_before_save', (unknown) $wysija_module, (unknown) $hook_settings_before_save ); 

Parameters (2)

0. $wysija_module (unknown) => WYSIJA_module::execute_hook('hook_settings_before_save', $hook_settings_before_save)
The wysija module.
1. $hook_settings_before_save (unknown)
The hook settings before save.

Usage

To run the hook, copy the example below.
  1. $wysija_module = apply_filters( 'hook_settings_before_save', $wysija_module, $hook_settings_before_save ); 
  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_settings_before_save callback 
  2. function filter_hook_settings_before_save( $wysija_module, $hook_settings_before_save ) { 
  3. // make filter magic happen here... 
  4. return $wysija_module
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'hook_settings_before_save', 'filter_hook_settings_before_save', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'hook_settings_before_save', 'filter_hook_settings_before_save', 10, 2 ); 

Defined (1)

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

/controllers/back/config.php  
  1. apply_filters('hook_settings_before_save', WYSIJA_module::execute_hook('hook_settings_before_save', $hook_settings_before_save), $hook_settings_before_save);