-
Home
-
Securicheck – Audit de sécurité et sécurisation
- Tips
How to Hide Securicheck Admin Menus
function plt_hide_securicheck_menus() {
//Hide "Securicheck".
remove_menu_page('securicheck');
//Hide "Securicheck → Audit".
remove_submenu_page('securicheck', 'securicheck');
//Hide "Securicheck → Connexions".
remove_submenu_page('securicheck', 'securicheck-connexions');
//Hide "Securicheck → Settings".
remove_submenu_page('securicheck', 'securicheck-reglages');
}
add_action('admin_menu', 'plt_hide_securicheck_menus', 11);
Where do I put this code?
How to Hide the "Securicheck" Dashboard Widget
function plt_hide_securicheck_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Securicheck" widget.
remove_meta_box('hpixl-securicheck-dashboard-widget-connexions', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_securicheck_dashboard_widgets', 20);