Skip to content

Instantly share code, notes, and snippets.

@maljones
Created August 13, 2021 00:55
Show Gist options
  • Save maljones/3946e25a96e37746c5247aa26c01bf79 to your computer and use it in GitHub Desktop.
Save maljones/3946e25a96e37746c5247aa26c01bf79 to your computer and use it in GitHub Desktop.
Disable duotone control in WP
// Disable duotone
add_filter(
'block_editor_settings',
function ($editor_settings) {
$editor_settings['__experimentalFeatures']['color']['customDuotone'] = false;
$editor_settings['__experimentalFeatures']['color']['duotone'] = false;
return $editor_settings;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment