Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_wp_call_all_hook() WordPress Function

The _wp_call_all_hook() function is a Wordpress core function that allows for plugins and themes to hook into the Wordpress core. This function is called when a hook is fired, and it calls all of the registered functions for that hook.

_wp_call_all_hook( array $args ) #

Calls the ‘all’ hook, which will process the functions hooked into it.


Description

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.


Top ↑

Parameters

$args

(array)(Required)The collected parameters from the hook that was called.


Top ↑

Source

File: wp-includes/plugin.php

function _wp_call_all_hook( $args ) {
	global $wp_filter;

	$wp_filter['all']->do_all_hook( $args );
}


Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.