-
Home
-
WP Composer – The Easiest Page Builder
- Tips
How to Hide WP Composer (Lite) Admin Menus
function plt_hide_page_builder_wp_menus() {
//Hide the "WP Composer" menu.
remove_menu_page('wpc-welcome');
//Hide the "WP Composer → About1" menu.
remove_submenu_page('wpc-welcome', 'wpc-welcome');
//Hide the "WP Composer → General Settings" menu.
remove_submenu_page('wpc-welcome', 'wpc-global-settings');
}
add_action('admin_menu', 'plt_hide_page_builder_wp_menus', 11);
Where do I put this code?
How to Hide the "Post Attributes" Meta Box
function plt_hide_page_builder_wp_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Post Attributes" meta box.
remove_meta_box('pageparentdiv', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_page_builder_wp_metaboxes', 20);