-
Home
-
Orbit Fox by ThemeIsle
- Tips
How to Hide Orbit Fox Companion Admin Menus
function plt_hide_themeisle_companion_menus() {
//Hide "Orbit Fox".
remove_menu_page('obfx_companion');
//Hide "Orbit Fox → General Settings".
remove_submenu_page('obfx_companion', 'obfx_companion');
//Hide "Orbit Fox → Template Directory".
remove_submenu_page('obfx_companion', 'obfx_template_dir');
//Hide "Orbit Fox → About Us".
remove_submenu_page('obfx_companion', 'ti-about-themeisle_companion');
}
add_action('admin_menu', 'plt_hide_themeisle_companion_menus', 12);
Where do I put this code?
How to Hide the "Scripts" Meta Box
function plt_hide_themeisle_companion_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Scripts" meta box.
remove_meta_box('obfx-scripts', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_themeisle_companion_metaboxes', 20);
How to Hide the "WordPress Guides/Tutorials" Dashboard Widget
function plt_hide_themeisle_companion_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WordPress Guides/Tutorials" widget.
remove_meta_box('themeisle', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_themeisle_companion_dashboard_widgets', 20);