WP_CLI::do_hook() Edit

Execute callbacks registered to a given hook.


Usage Usage

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

Top ↑

Notes 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.


Top ↑