WordPress.org

Codex

Function Reference/do action ref array

Contents

Description

Execute functions hooked on a specific action hook, specifying arguments in an array.

This function is identical to do_action, but the arguments passed to the functions hooked to $tag are supplied using an array.

Usage

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

Parameters

$tag
(string) (required) The name of the action to be executed.
Default: None
$args
(array) (required) The arguments supplied to the functions hooked to $tag
Default: None

Example

Notes

Change Log

Since: 2.1.0

Source File

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

Related

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

See also index of Function Reference and index of Template Tags.
This page is marked as incomplete. You can help Codex by expanding it.