Automattic\WooCommerce\Blocks\AI
Configuration::should_connect()
Verify if the site should connect to Jetpack.
Метод класса: Configuration{}
Хуков нет.
Возвращает
true|false
.
Использование
// private - только в коде основоного (родительского) класса $result = $this->should_connect();
Код Configuration::should_connect() Configuration::should connect WC 9.5.1
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' ); }