sanitize

The Google Analytics by DN sanitize hook.

Description

apply_filters( 'sanitize', (unknown) $output, (unknown) $input ); 

Parameters (2)

0. $output (unknown)
The output.
1. $input (unknown)
The input.

Usage

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

Defined (1)

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

/class.dn_google_analytics_admin.php  
  1. return apply_filters( 'sanitize', $output, $input );