Author is Aleš Sýkora
Updated: 22. 9. 2022, Added: 22. 9. 2022
Disable Gutenberg gradient picker
If you want to disable gradient picker in Gutenberg editor in WordPress, add this code to your functions.php or custom plugin or code snippets plugin like Advanced scripts. You may also need to change default Gutenberg colors.
/*Disable gradients*/
add_theme_support('editor-gradient-presets', []);
add_theme_support('disable-custom-gradients', true);