WC_CLI::add_blueprint_cli_hook
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() 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' );
}
}