WP_Hook::do_action( mixed $args )

Executes the callback functions hooked on a specific action hook.


Description Description


Parameters Parameters

$args

(mixed) (Required) Arguments to pass to the hook callbacks.


Top ↑

Source Source

File: wp-includes/class-wp-hook.php

	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;
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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