Call the 'all' hook, which will process the functions hooked into it.


_wp_call_all_hook( (array) $args ); 

The all hook passes all of the arguments or parameters that were used for the hook, which this function was called for.

This function is used internally for apply_filters(), do_action(), and do_action_ref_array() and is not meant to be used from outside those functions. This function does not check for the existence of the all hook, so it will fail unless the all hook exists prior to this function call.

Parameters (1)

0. $args (array)
The collected parameters from the hook that was called.


  1. if ( !function_exists( '_wp_call_all_hook' ) ) { 
  2. require_once ABSPATH . WPINC . '/plugin.php'; 
  4. // The collected parameters from the hook that was called. 
  5. $args = array(); 
  7. // NOTICE! Understand what this does before running. 
  8. $result = _wp_call_all_hook($args); 

Defined (1)

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

  1. function _wp_call_all_hook($args) { 
  2. global $wp_filter; 
  4. $wp_filter['all']->do_all_hook( $args );