monsterinsights_settings_sanitize

The WordPress Core monsterinsights settings sanitize hook.

Description

apply_filters( 'monsterinsights_settings_sanitize', (unknown) $value, (unknown) $id, (unknown) $args, (unknown) $previous_value ); 

Parameters (4)

0. $value (unknown)
The value.
1. $id (unknown)
The id.
2. $args (unknown)
The args.
3. $previous_value (unknown)
The previous value.

Usage

To run the hook, copy the example below.
  1. $value = apply_filters( 'monsterinsights_settings_sanitize', $value, $id, $args, $previous_value ); 
  2.  
  3. if ( !empty( $value ) ) { 
  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_sanitize callback 
  2. function filter_monsterinsights_settings_sanitize( $value, $id, $args, $previous_value ) { 
  3. // make filter magic happen here... 
  4. return $value
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'monsterinsights_settings_sanitize', 'filter_monsterinsights_settings_sanitize', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'monsterinsights_settings_sanitize', 'filter_monsterinsights_settings_sanitize', 10, 4 ); 

Defined (1)

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

/includes/admin/settings/settings-api.php  
  1. $value = apply_filters( 'monsterinsights_settings_sanitize' , $value, $id, $args, $previous_value );