wpml_suppress_filters

The WordPress Core wpml suppress filters hook.

Description

apply_filters( 'wpml_suppress_filters', (unknown) $filter ); 

Parameters (1)

0. $filter (unknown)
The filter.

Usage

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

Defined (3)

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

/products/photocrati_nextgen/modules/datamapper/package.module.datamapper.php  
  1. $query->query_vars['suppress_filters'] = apply_filters('wpml_suppress_filters', $filter); 
/products/photocrati_nextgen/modules/i18n/module.i18n.php  
  1. add_filter('wpml_suppress_filters', '__return_true', 10, 1); 
  1. add_filter('wpml_suppress_filters', '__return_false', 11, 1);