A WordPress-centric search engine for devs and theme authors
add_action › WordPress Function
› add_action ( $hook_name, $callback, $priority = 10, $accepted_args = 1 )
Adds a callback function to an action hook.Actions are the hooks that the WordPress core launches at specific points during execution, or when specific events occur. Plugins can specify that one or more of its PHP functions are executed at these points, using the Action API.
Related Functions: did_action, do_action, has_action, add_option, doing_action