-
Home
-
ExploreXR
- Tips
How to Hide ExploreXR Admin Menus
function plt_hide_explorexr_menus() {
//Hide "ExploreXR".
remove_menu_page('explorexr');
//Hide "ExploreXR → Dashboard".
remove_submenu_page('explorexr', 'explorexr');
//Hide "ExploreXR → Create New Model".
remove_submenu_page('explorexr', 'explorexr-create-model');
//Hide "ExploreXR → Browse Models".
remove_submenu_page('explorexr', 'explorexr-browse-models');
//Hide "ExploreXR → 3D Files".
remove_submenu_page('explorexr', 'explorexr-files');
//Hide "ExploreXR → Loading Options".
remove_submenu_page('explorexr', 'explorexr-loading-options');
//Hide "ExploreXR → Settings".
remove_submenu_page('explorexr', 'explorexr-settings');
//Hide "ExploreXR → Go Premium".
remove_submenu_page('explorexr', 'explorexr-premium');
}
add_action('admin_menu', 'plt_hide_explorexr_menus', 11);
Where do I put this code?
How to Hide ExploreXR Meta Boxes
function plt_hide_explorexr_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "3D Model File" meta box.
remove_meta_box('explorexr_model_file', $screen->id, 'normal');
//Hide the "Model Viewer Size" meta box.
remove_meta_box('explorexr_model_size', $screen->id, 'normal');
//Hide the "🚀 Premium Features" meta box.
remove_meta_box('explorexr-premium-features', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_explorexr_metaboxes', 20);
How to Hide the "ExploreXR 3D Models Status" Dashboard Widget
function plt_hide_explorexr_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "ExploreXR 3D Models Status" widget.
remove_meta_box('explorexr_orphaned_models_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_explorexr_dashboard_widgets', 20);