Codex

Function Reference/do action

Contents

Description

Creates a hook for attaching actions via add_action.

Usage

 <?php do_action$tag$arg ); ?> 

Parameters

$tag
(string) (required) The name of the hook you wish to create.
Default: None
$arg
(string) (optional) The list of arguments this hook accepts.
Default: ''

Example

Notes

Change Log

Since: 1.2.0

Source File

do_action() is located in wp-includes/plugin.php.

Related

Actions: add_action, do_action, do_action_ref_array, did_action, has_action, remove_action, remove_all_actions

See also index of Function Reference and index of Template Tags.