-
Home
-
Editor Custom Color Palette
- Tips
How to Hide the "ECCP Settings" Admin Menu
function plt_hide_editor_custom_color_palette_menus() {
//Hide the "ECCP Settings" menu.
remove_menu_page('eccp_settings_page');
}
add_action('admin_menu', 'plt_hide_editor_custom_color_palette_menus', 11);
Where do I put this code?
How to Hide Editor Custom Color Palette Meta Boxes
function plt_hide_editor_custom_color_palette_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Disable reading progress bar" meta box.
remove_meta_box('metabox_disable_reading_progress_bar', $screen->id, 'normal');
//Hide the "Content before/after publication" meta box.
remove_meta_box('metabox_remove_blocks_before_after_content', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_editor_custom_color_palette_metaboxes', 20);