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