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.
(mixed) Optional. Arguments that will be passed onto the
@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.
callback provided by WP_CLI::add_hook().

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

Top ↑