Core Function
View Source on Trac ↗ doing_filter()
doing_filter( mixed $hook_name = null ) Returns whether or not a filter hook is currently being processed.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (string | null) $hook_name Optional. Filter hook to check. Defaults to null, which checks if any filter is currently being run. Required |
Return Value
(bool)
Whether the filter is currently in the stack.
Function Information
Since Version
3.9.0
Source File
wp-includes/plugin.php
Advertisement