wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



did_filter › WordPress Function

Da6.1.0
Deprecaton/a
did_filter ( $hook_name )
Parametri:
  • (string) $hook_name The name of the filter hook.
    Richiesto:
Ritorna:
  • (int) The number of times the filter hook has been applied.
Definito a:
Codex:

Retrieves the number of times a filter has been applied during the current request.



Sorgenti

function did_filter( $hook_name ) {
	global $wp_filters;

	if ( ! isset( $wp_filters[ $hook_name ] ) ) {
		return 0;
	}

	return $wp_filters[ $hook_name ];
}