Method to add an action to the global array (
$array_global). Although typically used for hooks and action links, any global array with an associative key, a priority and a callable function can manipulated with this method.
Class: bb_build, called as $main
File: bb_build.php (php)
function add_action($name, $action, $value, $priority = 0)
$main->add_action($name, $action, $value, $priority)
$value to the global array
$array_global using parameters
$priority. Actions do not have a definite key, generally the
$action, a callable function in
$priority form a key.
The associative key for the array.
The value associated with the array. Should contain a callable function.
An integer added to
$value using associative key ‘priority’, which is sorted when executing hooks for execution order.