<hook>

The WordPress Core hook hook.

Description

remove_filter( '<hook>', (unknown) $hooks_hook_function, (unknown) $hooks_priority ); 

Parameters (2)

0. $hooks_hook_function (unknown)
The hooks hook function.
1. $hooks_priority (unknown)
The hooks priority.

Usage

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

Defined (2)

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

/core/plugins.php  
  1. remove_filter( $hooks->hook, $hooks->hook_function, $hooks->priority ); 
  1. remove_filter( $hooks->hook, $hooks->hook_function );