-
Home
-
MarfeelPress
- Tips
How to Hide the "MarfeelPress" Admin Menu
function plt_hide_marfeelpress_menus() {
//Hide the "MarfeelPress" menu.
remove_menu_page('mrf-onboarding');
}
add_action('admin_menu', 'plt_hide_marfeelpress_menus', 11);
Where do I put this code?
How to Hide MarfeelPress Meta Boxes
function plt_hide_marfeelpress_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Marfeel" meta box.
remove_meta_box('mrf_post_options', $screen->id, 'side');
//Hide the "Marfeel" meta box.
remove_meta_box('mrf_page_options', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_marfeelpress_metaboxes', 20);