add_action()
add_action(string $action_name, \function $func)
Registers a new action handler.
Parameters
string | $action_name | The action to register. |
\function | $func | The function to call when the specified action is requested. |