add_action Wordpress function


Description:

Hooks a function on to a specific action.


Syntax:


Arguments:

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

wp-includes/plugin.php


Wordpress Reference URL:

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


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