Automattic\WooCommerce\Blocks\AI

Configuration::init()publicWC 1.0

Initialize the site and user connection and registration.

Method of the class: Configuration{}

No Hooks.

Return

true|false|\WP_Error.

Usage

$Configuration = new Configuration();
$Configuration->init();

Configuration::init() code WC 9.0.1

public function init() {
	if ( ! $this->should_connect() ) {
		return false;
	}

	$this->enable_connection_feature();

	return $this->register_and_connect();
}