wpseek.com
WordPress开发者和主题制作者的搜索引擎



current_action › WordPress Function

Since3.9.0
已弃用n/a
› current_action ( 没有参数 )
返回:
  • (string|false) Hook name of the current action, false if no action is running.
定义在:
文档:

Retrieves the name of the current action hook.



源码

function current_action() {
	return current_filter();
}