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

