-
Home
-
WP Activity Log
- Tips
How to Hide WP Activity Log Admin Menus
function plt_hide_wp_security_audit_log_menus() {
remove_submenu_page('index.php', 'wsal-setup');
remove_menu_page('wsal-auditlog');
remove_submenu_page('wsal-auditlog', 'wsal-auditlog');
remove_submenu_page('wsal-auditlog', 'wsal-wsal-views-premium-features');
remove_submenu_page('wsal-auditlog', 'wsal-notifications');
remove_submenu_page('wsal-auditlog', 'wsal-settings');
remove_submenu_page('wsal-auditlog', 'wsal-togglealerts');
remove_submenu_page('wsal-auditlog', 'wsal-help');
remove_submenu_page('wsal-auditlog', 'upgrade');
}
add_action('admin_menu', 'plt_hide_wp_security_audit_log_menus', 11);
Where do I put this code?
How to Hide the "Latest Events | WP Activity Log" Dashboard Widget
function plt_hide_wp_security_audit_log_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
remove_meta_box('wsal', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_wp_security_audit_log_dashboard_widgets', 20);