Automattic\WooCommerce\EmailEditor\Engine

Site_Style_Sync_Controller::is_sync_enabledpublicWC 1.0

Check if site style sync is enabled

Метод класса: Site_Style_Sync_Controller{}

Возвращает

true|false.

Использование

$Site_Style_Sync_Controller = new Site_Style_Sync_Controller();
$Site_Style_Sync_Controller->is_sync_enabled(): bool;

Код Site_Style_Sync_Controller::is_sync_enabled() WC 10.4.3

public function is_sync_enabled(): bool {
	/**
	 * Filter to enable/disable site style sync functionality
	 *
	 * @param bool $enabled Whether site style sync is enabled.
	 */
	return apply_filters( 'woocommerce_email_editor_site_style_sync_enabled', true );
}