Core Function
View Source on Trac ↗ did_filter()
did_filter( mixed $hook_name ) Retrieves the number of times a filter has been applied during the current request.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $hook_name string | The name of the filter hook. Required |
Return Value
(int)
The number of times the filter hook has been applied.
Function Information
Since Version
6.1.0
Source File
wp-includes/plugin.php
Advertisement