wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



did_action › WordPress Function

Od2.1.0
Przestarzałyn/a
did_action ( $hook_name )
Parametry:
  • (string) $hook_name The name of the action hook.
    Wymagane: Tak
Powrót:
  • (int) The number of times the action hook has been fired.
Zdefiniowane na:
Codex:

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



Źródło

function did_action( $hook_name ) {
	global $wp_actions;

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

	return $wp_actions[ $hook_name ];
}