do_action ( $tag, $arg = '' )
- (string) $tag The name of the action to be executed.
- (mixed) $arg,... Optional. Additional arguments which are passed on to the functions hooked to the action. Default empty.
- Introduced in WordPress: 1.2.0
- Deprecated in WordPress: —
Execute functions hooked on a specific action hook.
This function invokes all functions attached to action hook
$tag. It is
possible to create new action hooks by simply calling this function,
specifying the name of the new hook using the
You can pass extra arguments to the hooks, much like you can with apply_filters().