-
Home
-
Htaccess File Editor – Easily Edit, Backup, Restore .htaccess file
- Tips
How to Hide Htaccess File Editor Admin Menus
function plt_hide_htaccess_file_editor_menus() {
//Hide the "Htaccess" menu.
remove_menu_page('htaccess-file-editor');
//Hide the "Htaccess → Htaccess" menu.
remove_submenu_page('htaccess-file-editor', 'htaccess-file-editor');
//Hide the "Htaccess → Backup" menu.
remove_submenu_page('htaccess-file-editor', 'htaccess-file-editor-backup');
}
add_action('admin_menu', 'plt_hide_htaccess_file_editor_menus', 11);
Where do I put this code?
How to Hide the "Latest News From MantraBrain Blog" Dashboard Widget
function plt_hide_htaccess_file_editor_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Latest News From MantraBrain Blog" widget.
remove_meta_box('mantrabrain_dashboard_blog_news', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_htaccess_file_editor_dashboard_widgets', 20);