WC_CLI::add_blueprint_cli_hookpublicWC 1.0

Include Blueprint CLI if it's available.

Method of the class: WC_CLI{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_CLI = new WC_CLI();
$WC_CLI->add_blueprint_cli_hook();

WC_CLI::add_blueprint_cli_hook() code WC 10.3.3

public function add_blueprint_cli_hook() {
	if ( FeaturesUtil::feature_is_enabled( 'blueprint' ) && class_exists( \Automattic\WooCommerce\Blueprint\Cli::class ) ) {
		require_once dirname( WC_PLUGIN_FILE ) . '/packages/blueprint/src/Cli.php';
		WP_CLI::add_hook( 'after_wp_load', 'Automattic\WooCommerce\Blueprint\Cli::register_commands' );
	}
}