add_filter Wordpress function


Hooks a function or method to a specific filter action.



(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:


Wordpress Reference URL:

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