wp plugin -12
apply_filters_ref_array( $tag, $args );
$tag — The name of the filter hook.
$args — An array of arguments to pass to filters registered for the hook.
remove_filter( $tag, $function_to_remove, $priority, $accepted_args );
$tag — The name of the filter hook to remove a filter from.
$function_to_remove — The function to remove from the filter hook.
$priority — The priority previously used in add_filter() to register the filter. This parameter defaults to 10 .
$accepted_args — The number of accepted arguments previously declared in the add_filter() called to register the fi lter. This parameter defaults to 1 .
remove_all_filters( $tag, $priority );
$tag — Name of the filter hook to remove all filters from.
$priority — Priority of the filters to remove from the fi lter hook. This parameter is optional. If not set, all fi lters will be removed from the hook.
has_filter( $tag, $function_to_check );
$tag — Name of the filter hook to check whether it has any registered filters.
$function_to_check — A specifi c function to check against the filter. This parameter is optional.
current_filter(), returns the name of the filter/action hook currently executed.
Quick Return Functions
__return_false — Returns the Boolean value of false .
__return_true — Returns the Boolean value of true .
__return_empty_array — Returns an empty PHP array.
__return_zero — Returns the integer 0 .
浙公网安备 33010602011771号