current_filter

函数


current_filter ( No parameters )
返回值
  • (string) Hook name of the current filter.
定义位置
  • wp-includes/plugin.php
    , line 364
引入
2.5.0
弃用

Retrieves the name of the current filter hook.

function current_filter() {
	global $wp_current_filter;

	return end( $wp_current_filter );
}