WPDev.one
Core Function
View Source on Trac ↗

did_action()

did_action( mixed $hook_name )

Retrieves the number of times an action has been fired during the current request.

Parameters 1 required

Name / Type Description
$hook_name
string

The name of the action hook.

Required

Return Value

(int)
The number of times the action hook has been fired.

Function Information

Since Version
2.1.0
Source File
wp-includes/plugin.php
Advertisement