woocommerce_email_editor_site_style_sync_enabled
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
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 );