函数原型
current_action(): string
函数描述
Retrieves the name of the current action hook.
是否弃用
未弃用
函数参数
无
函数返回值
string Hook name of the current action.
函数位置
File: wp-includes/plugin.php.
函数源码
function current_action() {
return current_filter();
}
源码链接
变更日志
Changelog| Version | Description |
|---|
| 3.9.0 | Introduced. |