WP_Hook::do_action( array $args )

In this article

Calls the callback functions that have been added to an action hook.

Parameters

$argsarrayrequired
Parameters to pass to the callback functions.

Source

public function do_action( $args ) {
	$this->doing_action = true;
	$this->apply_filters( '', $args );

	// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
	if ( ! $this->nesting_level ) {
		$this->doing_action = false;
	}
}

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.