WooCommerce::init_jetpack_connection_config
Initialize Jetpack Connection Config.
Method of the class: WooCommerce{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WooCommerce = new WooCommerce(); $WooCommerce->init_jetpack_connection_config();
WooCommerce::init_jetpack_connection_config() WooCommerce::init jetpack connection config code WC 10.7.0
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',
)
);
}