Function zp_remove_filter
Removes a function from a specified filter hook.
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.
To be removed the $function_to_remove and $priority arguments must match when the hook was added.
global array $_zp_filters storage for all of the filters
string |
$hook |
The filter hook to which the function to be removed is hooked. |
callable |
$function_to_remove |
The name of the function which should be removed. |
integer |
$priority = NULL |
optional. The priority of the function. If not supplied we will get it from zp_has_filter |
integer |
$accepted_args = 1 |
optional. The number of arguments the function accpets (default: 1). |
boolean
|
Whether the function was registered as a filter before it was removed. |