remove_all_actions

Remove all of the hooks from an action.

Description

remove_all_actions( (string) $tag, (constant) $priority = false ); 

Parameters (2)

0. $tag (string)
The action to remove hooks from.
1. $priority — Optional. (constant) => false
The priority number to remove them from. Default false.

Usage

  1. if ( !function_exists( 'remove_all_actions' ) ) { 
  2. require_once ABSPATH . WPINC . '/plugin.php'; 
  3.  
  4. // The action to remove hooks from. 
  5. $tag = ''; 
  6.  
  7. // The priority number to remove them from. Default false. 
  8. $priority = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = remove_all_actions($tag, $priority); 
  12.  

Defined (1)

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

/wp-includes/plugin.php  
  1. function remove_all_actions($tag, $priority = false) { 
  2. return remove_all_filters($tag, $priority);