Core Function
View Source on Trac ↗ remove_filter()
remove_filter( mixed $hook_name, mixed $callback, mixed $priority = 10 ) Removes a callback function from a filter hook.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $hook_name string | The filter hook to which the function to be removed is hooked. Required |
| mixed | (callable | string | array) $callback The callback to be removed from running when the filter is applied. This function can be called unconditionally to speculatively remove a callback that may or may not exist. Required |
| int | $priority Optional. The exact priority used when adding the original filter callback. Default 10. Required |
Return Value
(bool)
Whether the function existed before it was removed.
Function Information
Since Version
1.2.0
Source File
wp-includes/plugin.php
Advertisement