WooCommerce::init_jetpack_connection_config()publicWC 1.0

Initiali Jetpack Connection Config.

Method of the class: WooCommerce{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WooCommerce::init_jetpack_connection_config() code WC 9.2.3

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',
		)
	);
}