Codex

Function Reference/did action

Contents

Description

Retrieve the number times an action is fired.

Usage

<?php did_action$tag ); ?>

Parameters

$tag
(string) (required) The name of the action hook.
Default: None

Return Values

(integer) 
The number of times action hook <tt>$tag</tt> is fired

Examples

Notes

  • Uses global: (unknown type) $wp_actions

Change Log

Since: 2.1

Source File

did_action() is located in wp-includes/plugin.php.

Related

Actions: add_action, do_action, do_action_ref_array, did_action, has_action, remove_action, remove_all_actions

See also index of Function Reference and index of Template Tags.