Definition:
function did_action($tag) {}
Retrieve the number of times an action is fired.
Parameters
- string $tag: The name of the action hook.
Return values
returns:The number of times action hook <tt>$tag</tt> is fired
Source code
function did_action($tag) { global $wp_actions; if ( ! isset( $wp_actions ) || ! isset( $wp_actions[$tag] ) ) return 0; return $wp_actions[$tag]; }
828
No comments yet... Be the first to leave a reply!