woocommerce_email_editor_site_style_sync_enabled filter-hookWC 1.0

Filter to enable/disable site style sync functionality

Usage

add_filter( 'woocommerce_email_editor_site_style_sync_enabled', 'wp_kama_woocommerce_email_editor_site_style_sync_enabled_filter' );

/**
 * Function for `woocommerce_email_editor_site_style_sync_enabled` filter-hook.
 * 
 * @param bool $enabled Whether site style sync is enabled.
 *
 * @return bool
 */
function wp_kama_woocommerce_email_editor_site_style_sync_enabled_filter( $enabled ){

	// filter...
	return $enabled;
}
$enabled(true|false)
Whether site style sync is enabled.

Where the hook is called

Site_Style_Sync_Controller::is_sync_enabled()
woocommerce_email_editor_site_style_sync_enabled
woocommerce/packages/email-editor/src/Engine/class-site-style-sync-controller.php 112
return apply_filters( 'woocommerce_email_editor_site_style_sync_enabled', true );

Where the hook is used in WooCommerce

Usage not found.