Uma área de pesquisa sobre o WordPress para devs e autores do tema



doing_action ›

Desde3.9.0
Obsoleton/a
doing_action ( $action = null )
Parâmetros:
  • (string|null) $action Optional. Action to check. Defaults to null, which checks if any action is currently being run.
    Required: No
    Padrão: null
Retorna:
  • (bool) Whether the action is currently in the stack.
Definido em:
Codex:

Retrieve the name of an action currently being processed.



Fonte

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