-
Home
-
Limit Login Attempts Reloaded
- Tips
How to Hide Limit Login Attempts Reloaded Admin Menus
function plt_hide_limit_login_attempts_reloaded_menus() {
//Hide "Limit Login Attempts".
remove_menu_page('limit-login-attempts');
//Hide "Limit Login Attempts → Dashboard".
remove_submenu_page('limit-login-attempts', 'limit-login-attempts&tab=dashboard');
//Hide "Limit Login Attempts → Settings".
remove_submenu_page('limit-login-attempts', 'limit-login-attempts&tab=settings');
//Hide "Limit Login Attempts → Logs".
remove_submenu_page('limit-login-attempts', 'limit-login-attempts&tab=logs-local');
//Hide "Limit Login Attempts → Debug".
remove_submenu_page('limit-login-attempts', 'limit-login-attempts&tab=debug');
//Hide "Limit Login Attempts → Help".
remove_submenu_page('limit-login-attempts', 'limit-login-attempts&tab=help');
//Hide "Limit Login Attempts → Free Upgrade".
remove_submenu_page('limit-login-attempts', 'limit-login-attempts&tab=dashboard#modal_micro_cloud');
}
add_action('admin_menu', 'plt_hide_limit_login_attempts_reloaded_menus', 11);
Where do I put this code?
How to Hide the "Limit Login Attempts Reloaded" Dashboard Widget
function plt_hide_limit_login_attempts_reloaded_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Limit Login Attempts Reloaded" widget.
remove_meta_box('llar_stats_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_limit_login_attempts_reloaded_dashboard_widgets', 20);