-
Home
-
Seraphinite Alternative Slugs Manager
- Tips
How to Hide the "PluginTitle" Admin Menu
function plt_hide_seraphinite_old_slugs_mgr_menus() {
//Hide the "Settings → PluginTitle" menu.
remove_submenu_page('options-general.php', 'seraph_osm_settings');
}
add_action('admin_menu', 'plt_hide_seraphinite_old_slugs_mgr_menus', 11);
Where do I put this code?
How to Hide the "Title_Slug" Meta Box
function plt_hide_seraphinite_old_slugs_mgr_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Title_Slug" meta box.
remove_meta_box('seraph_osm_editor', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_seraphinite_old_slugs_mgr_metaboxes', 20);