WC_CLI::maybe_include_blueprint_cli()privateWC 1.0

Include Blueprint CLI if it's available.

Method of the class: WC_CLI{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->maybe_include_blueprint_cli();

WC_CLI::maybe_include_blueprint_cli() code WC 9.4.2

private function maybe_include_blueprint_cli() {
	if ( ! function_exists( 'wc_admin_get_feature_config' ) ) {
		require_once WC_ABSPATH . 'includes/react-admin/feature-config.php';
	}

	$features = wc_admin_get_feature_config();
	if ( isset( $features['blueprint'] ) ) {
		require_once dirname( WC_PLUGIN_FILE ) . '/vendor/woocommerce/blueprint/src/Cli.php';
	}
}