GC_Hook::do_action()
最后更新于:2021-11-27 21:14:56
GC_Hook::do_action( array$args)Calls the callback functions that have been added to an action hook.
参数
- $args
-
(array) (Required) 参数 to pass to the callback functions.
源文件
文件: gc-includes/class-gc-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;
}
}