WP-CLI

A command line interface for WordPress

Docs » Internal API » Registration

WP_CLI::do_hook()

Execute callbacks registered to a given hook.


Usage

WP_CLI::do_hook( $when )
$when (string) Identifier for the hook.
@return (null)

Notes

See WP_CLI::add_hook() for details on WP-CLI’s internal hook system. Commands can provide and call their own hooks.

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.