did_action
did_action ( $hook_name )
Parameters:- (string) hook_name The name of the action hook.
Returns:- (int) The number of times the action hook has been fired.
Defined at: - Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Description
Retrieves the number of times an action has been fired during the current request.