Execute callbacks registered to a given hook.
WP_CLI::do_hook( $when )
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.