WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/remove filter

Description

This function removes a function attached to a specified filter hook. This method can be used to remove default functions attached to a specific filter hook and possibly replace them with a substitute.

Parameters

$tag
(string) (required) The filter hook to which the function to be removed is hooked.
Default: None
$function_to_remove
(callback) (required) The name of the function which should be removed.
Default: None
$priority
(integer) (optional) The priority of the function.
Default: 10
$accepted_args
(integer) (optional) The number of arguments the function accepts.
Default: 1

Return

(boolean) : Whether the function is removed.

This page is marked as incomplete. You can help Codex by expanding it.