Automattic\WooCommerce\Internal\Email

EmailStyleSync::set_auto_syncpublicWC 1.0

Set auto-sync enabled status.

Method of the class: EmailStyleSync{}

No Hooks.

Returns

true|false. Whether the option was updated.

Usage

$EmailStyleSync = new EmailStyleSync();
$EmailStyleSync->set_auto_sync( $enabled );
$enabled(true|false) (required)
Whether auto-sync should be enabled.

EmailStyleSync::set_auto_sync() code WC 9.9.3

public function set_auto_sync( bool $enabled ) {
	return update_option( self::AUTO_SYNC_OPTION, $enabled ? 'yes' : 'no' );
}