add_filter Wordpress function


Description:

Hooks a function or method to a specific filter action.


Syntax:


Arguments:

(string) $tag The name of the filter to hook the $function_to_add to.
(callback) $function_to_add The name of the function to be called when the filter is applied.
(int) $priority optional. Used to specify the order in which the functions associated with a particular action are executed (default: 10). Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.
(int) $accepted_args optional. The number of arguments the function accept (default 1).


Return Type:

(boolean) true


Define At:

wp-includes/plugin.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/add_filter


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×