-
Home
-
WP Force SSL & HTTPS SSL Redirect
- Tips
How to Hide the "WP Force SSL 5" Admin Menu
function plt_hide_wp_force_ssl_menus() {
//Hide the "Settings → WP Force SSL 5" menu.
remove_submenu_page('options-general.php', 'wpfs-settings');
}
add_action('admin_menu', 'plt_hide_wp_force_ssl_menus', 11);
Where do I put this code?
How to Hide the "WP Force SSL Status" Dashboard Widget
function plt_hide_wp_force_ssl_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WP Force SSL Status" widget.
remove_meta_box('wpfssl_status', 'dashboard', 'side');
}
add_action('wp_dashboard_setup', 'plt_hide_wp_force_ssl_dashboard_widgets', 20);