Uses
Uses | Description |
---|---|
wp-includes/class-wp-hook.php: WP_Hook::apply_filters() | Calls the callback functions that have been added to a filter hook. |
Calls the callback functions that have been added to an action hook.
(array) (Required) Parameters to pass to the callback functions.
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; } }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_hook/do_action