wp-includes/plugin.php:411Retrieves the number of times a filter has been applied during the current request.
$hook_namestringintfunction did_filter( $hook_name ) { global $wp_filters; if ( ! isset( $wp_filters[ $hook_name ] ) ) { return 0; } return $wp_filters[ $hook_name ];}Introduced in 6.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.