-
Home
-
Ally – Web Accessibility & Usability
- Tips
How to Hide Ally - Web Accessibility & Usability Admin Menus
function plt_hide_pojo_accessibility_menus() {
//Hide "Elementor".
remove_menu_page('elementor-home');
//Hide "Elementor → Home".
remove_submenu_page('elementor-home', 'admin.php?page=elementor-home');
//Hide "Elementor → Accessibility".
remove_submenu_page('elementor-home', 'accessibility-settings');
//Hide "Elementor → Upgrade".
remove_submenu_page('elementor-home', 'elementor-one-upgrade');
}
add_action('admin_menu', 'plt_hide_pojo_accessibility_menus', 2147483647);
Where do I put this code?
How to Hide the "Accessibility" Dashboard Widget
function plt_hide_pojo_accessibility_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Accessibility" widget.
remove_meta_box('ea11y-dashboard-widget', 'dashboard', 'column3');
}
add_action('wp_dashboard_setup', 'plt_hide_pojo_accessibility_dashboard_widgets', 20);