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



did_action › WordPress Function

Da2.1.0
Deprecaton/a
did_action ( $hook_name )
Parametri:
  • (string) $hook_name The name of the action hook.
    Richiesto:
Ritorna:
  • (int) The number of times the action hook has been fired.
Definito a:
Codex:

Retrieves the number of times an action has been fired during the current request.



Sorgenti

function did_action( $hook_name ) {
	global $wp_actions;

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

	return $wp_actions[ $hook_name ];
}