-
Home
-
Transliterator
- Tips
How to Hide the "Transliteration" Admin Menu
function plt_hide_serbian_transliteration_menus() {
//Hide the "Settings → Transliteration" menu.
remove_submenu_page('options-general.php', 'transliteration-settings');
}
add_action('admin_menu', 'plt_hide_serbian_transliteration_menus', 2147483647);
Where do I put this code?
How to Hide Transliterator Meta Boxes
function plt_hide_serbian_transliteration_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "🌟 Light Up Our Day! 🌟" meta box.
remove_meta_box('donations', $screen->id, 'side');
//Hide the "Contributors & Developers" meta box.
remove_meta_box('contributors', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_serbian_transliteration_metaboxes', 20);
How to Hide the "WordPress Transliterator" Dashboard Widget
function plt_hide_serbian_transliteration_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WordPress Transliterator" widget.
remove_meta_box('transliterator_dashboard_widget', 'dashboard', 'side');
}
add_action('wp_dashboard_setup', 'plt_hide_serbian_transliteration_dashboard_widgets', 20);