Automattic\WooCommerce\Blocks\AI
Configuration::should_connect()
Verify if the site should connect to Jetpack.
Method of the class: Configuration{}
No Hooks.
Return
true|false
.
Usage
// private - for code of main (parent) class only $result = $this->should_connect();
Configuration::should_connect() Configuration::should connect code WC 9.4.2
private function should_connect() { $site_owner_consent = get_option( $this->consent_option_name ); return $site_owner_consent && class_exists( 'Automattic\Jetpack\Connection\Utils' ) && class_exists( 'Automattic\Jetpack\Connection\Manager' ); }