Core Function
View Source on Trac ↗ do_action()
do_action( mixed $hook_name, mixed $arg ) Calls the callback functions that have been added to an action hook.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $hook_name string | The name of the action to be executed. Required |
| mixed | mixed ...$arg Optional. Additional arguments which are passed on to the functions hooked to the action. Default empty. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
1.2.0
Source File
wp-includes/plugin.php
Advertisement