Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



doing_action ›

Seit3.9.0
Veraltetn/v
doing_action ( $action = null )
Parameter:
  • (string|null) $action Optional. Action to check. Defaults to null, which checks if any action is currently being run.
    Erforderlich: Nein
    Standard: null
Gibt zurück:
  • (bool) Whether the action is currently in the stack.
Definiert in:
Codex:

Retrieve the name of an action currently being processed.



Quellcode

function doing_action( $action = null ) {
	return doing_filter( $action );
}