-
Home
-
Web-Engine Sentry
- Tips
How to Hide the "Sentry" Admin Menu
function plt_hide_web_engine_sentry_menus() {
//Hide the "Settings → Sentry" menu.
remove_submenu_page('options-general.php', 'we360cloud_sentry');
}
add_action('admin_menu', 'plt_hide_web_engine_sentry_menus', 11);
Where do I put this code?
How to Hide the "web-engine-sentry" Dashboard Widget
function plt_hide_web_engine_sentry_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "web-engine-sentry" widget.
remove_meta_box('weCaptcha_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_web_engine_sentry_dashboard_widgets', 20);