monsterinsights_settings_save_general_tracking_mode

Developer Alert:.

Description

apply_filters( 'monsterinsights_settings_save_general_tracking_mode', (string) $analytics ); 

Per the README, this is considered an internal hook and should not be used by other developers. This hook's behavior may be modified or the hook may be removed at any time, without warning.

Parameters (1)

0. $analytics (string) => 'analytics'
The analytics.

Usage

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

Defined (2)

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

/includes/admin/settings/tab-general.php  
  1. $tracking_mode = apply_filters( 'monsterinsights_settings_save_general_tracking_mode', 'analytics' ); 
  1. $tracking_mode = apply_filters( 'monsterinsights_settings_save_general_tracking_mode', 'analytics' );