wp-includes/plugin.php:686Retrieves the number of times an action has been fired during the current request.
$hook_namestringintfunction did_action( $hook_name ) { global $wp_actions; if ( ! isset( $wp_actions[ $hook_name ] ) ) { return 0; } return $wp_actions[ $hook_name ];}Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/plugin.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.