This can be used to remove default functions attached to a specific action hook and possibly replace them with a substitute. To remove a hook, the $callback and $priority arguments must match when the hook was added. This goes for both filters and actions. No warning will be given on removal failure.
Parameters
$hook_namestring
The action hook to which the function to be removed is hooked.
$callbackcallable|string|array
The name of the function which should be removed. This function can be called unconditionally to speculatively remove a callback that may or may not exist.
$priorityintoptional
The exact priority used when adding the original action callback. Default 10.Default: 10
Return
bool
Whether the function is removed.
Uses · 1
remove_filter()Removes a callback function from a filter hook.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/plugin.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.