WC_CLI::add_blueprint_cli_hook │ public │ WC 1.0

Include Blueprint CLI if it's available.

Метод класса: WC_CLI{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код WC_CLI::add_blueprint_cli_hook() WC 11.2.2

public function add_blueprint_cli_hook() {
	if ( FeaturesUtil::feature_is_enabled( 'blueprint' ) && class_exists( \Automattic\WooCommerce\Blueprint\Cli::class ) ) {
		WP_CLI::add_hook( 'after_wp_load', 'Automattic\WooCommerce\Blueprint\Cli::register_commands' );
	}
}