_wp_call_all_hook()WP 2.5.0

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.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

null. Nothing (null).

Usage

_wp_call_all_hook( $args );
$args(array) (required)
The collected parameters from the hook that was called.

Notes

  • Global. WP_Hook[]. $wp_filter Stores all of the filters and actions.

Changelog

Since 2.5.0 Introduced.

_wp_call_all_hook() code WP 6.4.3

function _wp_call_all_hook( $args ) {
	global $wp_filter;

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