WooCommerce::init_jetpack_connection_config()publicWC 1.0

Initialize Jetpack Connection Config.

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

Хуков нет.

Возвращает

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

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

$WooCommerce = new WooCommerce();
$WooCommerce->init_jetpack_connection_config();

Код WooCommerce::init_jetpack_connection_config() WC 9.8.1

public function init_jetpack_connection_config() {
	$config = new Automattic\Jetpack\Config();
	$config->ensure(
		'connection',
		array(
			'slug' => 'woocommerce',
			// Cannot use __() here because it would cause translations to be loaded too early.
			// See https://github.com/woocommerce/woocommerce/pull/47113.
			'name' => 'WooCommerce',
		)
	);
}