WordPress 中文文档

Function Reference/do action

From WordPress Chinese

Jump to: navigation, search

Description

Creates a hook for attaching actions via add_action.

Usage

%%% <?php do_action($tag, $arg = ); ?> %%%

Parameters

$tag 
(string) The name of the hook you wish to create.
$arg 
(string) The list of arguments this hook accepts.
用户