add_action Wordpress function


Hooks a function on to a specific action.



(string) $tag The name of the action to which the $function_to_add is hooked.
(callback) $function_to_add The name of the function you wish to be called.
(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:

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 ×