Un motore di ricerca WordPress per sviluppatori e autori di temi



did_action ›

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

Retrieve the number of times an action is fired.



Sorgenti

function did_action( $tag ) {
	global $wp_actions;

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

	return $wp_actions[ $tag ];
}