_wp_call_all_hook

The timeline below displays how wordpress function _wp_call_all_hook has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.8

/**
 * Calls the 'all' hook, which will process the functions hooked into it.
 *
 * 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.
 *
 * @since 2.5.0
 * @access private
 *
 * @global WP_Hook[] $wp_filter Stores all of the filters and actions.
 *
 * @param array $args The collected parameters from the hook that was called.
 */
function _wp_call_all_hook($args)
{
    global $wp_filter;
    $wp_filter['all']->do_all_hook($args);
}

WordPress Version: 5.6

/**
 * Call the 'all' hook, which will process the functions hooked into it.
 *
 * 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.
 *
 * @since 2.5.0
 * @access private
 *
 * @global WP_Hook[] $wp_filter Stores all of the filters and actions.
 *
 * @param array $args The collected parameters from the hook that was called.
 */
function _wp_call_all_hook($args)
{
    global $wp_filter;
    $wp_filter['all']->do_all_hook($args);
}

WordPress Version: 5.4

/**
 * Call the 'all' hook, which will process the functions hooked into it.
 *
 * 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.
 *
 * @since 2.5.0
 * @access private
 *
 * @global array $wp_filter Stores all of the filters and actions.
 *
 * @param array $args The collected parameters from the hook that was called.
 */
function _wp_call_all_hook($args)
{
    global $wp_filter;
    $wp_filter['all']->do_all_hook($args);
}

WordPress Version: 4.7

/**
 * Call the 'all' hook, which will process the functions hooked into it.
 *
 * 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.
 *
 * @since 2.5.0
 * @access private
 *
 * @global array $wp_filter  Stores all of the filters
 *
 * @param array $args The collected parameters from the hook that was called.
 */
function _wp_call_all_hook($args)
{
    global $wp_filter;
    $wp_filter['all']->do_all_hook($args);
}

WordPress Version: 4.3

/**
 * Call the 'all' hook, which will process the functions hooked into it.
 *
 * 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.
 *
 * @since 2.5.0
 * @access private
 *
 * @global array $wp_filter  Stores all of the filters
 *
 * @param array $args The collected parameters from the hook that was called.
 */
function _wp_call_all_hook($args)
{
    global $wp_filter;
    reset($wp_filter['all']);
    do {
        foreach ((array) current($wp_filter['all']) as $the_) {
            if (!is_null($the_['function'])) {
                call_user_func_array($the_['function'], $args);
            }
        }
    } while (next($wp_filter['all']) !== false);
}

WordPress Version: 4.1

/**
 * Call the 'all' hook, which will process the functions hooked into it.
 *
 * 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.
 *
 * @since 2.5.0
 * @access private
 *
 * @param array $args The collected parameters from the hook that was called.
 */
function _wp_call_all_hook($args)
{
    global $wp_filter;
    reset($wp_filter['all']);
    do {
        foreach ((array) current($wp_filter['all']) as $the_) {
            if (!is_null($the_['function'])) {
                call_user_func_array($the_['function'], $args);
            }
        }
    } while (next($wp_filter['all']) !== false);
}

WordPress Version: 4.0

/**
 * Call the 'all' hook, which will process the functions hooked into it.
 *
 * 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.
 *
 * @since 2.5.0
 * @access private
 *
 * @uses $wp_filter Used to process all of the functions in the 'all' hook.
 *
 * @param array $args The collected parameters from the hook that was called.
 */
function _wp_call_all_hook($args)
{
    global $wp_filter;
    reset($wp_filter['all']);
    do {
        foreach ((array) current($wp_filter['all']) as $the_) {
            if (!is_null($the_['function'])) {
                call_user_func_array($the_['function'], $args);
            }
        }
    } while (next($wp_filter['all']) !== false);
}

WordPress Version: 3.9

/**
 * Calls the 'all' hook, which will process the functions hooked into it.
 *
 * 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.
 *
 * @since 2.5.0
 * @access private
 *
 * @uses $wp_filter Used to process all of the functions in the 'all' hook
 *
 * @param array $args The collected parameters from the hook that was called.
 */
function _wp_call_all_hook($args)
{
    global $wp_filter;
    reset($wp_filter['all']);
    do {
        foreach ((array) current($wp_filter['all']) as $the_) {
            if (!is_null($the_['function'])) {
                call_user_func_array($the_['function'], $args);
            }
        }
    } while (next($wp_filter['all']) !== false);
}

WordPress Version: 3.7

/**
 * Calls the 'all' hook, which will process the functions hooked into it.
 *
 * 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.
 *
 * @package WordPress
 * @subpackage Plugin
 * @since 2.5
 * @access private
 *
 * @uses $wp_filter Used to process all of the functions in the 'all' hook
 *
 * @param array $args The collected parameters from the hook that was called.
 */
function _wp_call_all_hook($args)
{
    global $wp_filter;
    reset($wp_filter['all']);
    do {
        foreach ((array) current($wp_filter['all']) as $the_) {
            if (!is_null($the_['function'])) {
                call_user_func_array($the_['function'], $args);
            }
        }
    } while (next($wp_filter['all']) !== false);
}