Home › Forums › Support › How to hide Elements in admin bar? This topic has 5 replies, 2 voices, and was last updated 3 years, 4 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts December 1, 2022 at 1:47 am #2444139 Robert ..or disable it in the WordPress admin bar, without deactivating elements? December 1, 2022 at 9:23 am #2444845 DavidStaff Customer Support Hi there, try adding this PHP Snippet: add_action('wp', function(){ remove_action( 'admin_bar_menu', 'generate_add_elements_admin_bar', 100 ); }); December 1, 2022 at 10:17 am #2445119 Robert Does not seem to work, I tried in function.php of child theme and snippets-plugin. December 1, 2022 at 10:19 am #2445127 DavidStaff Customer Support Thats odd, i tested it ok. How about just adding this: remove_action( 'admin_bar_menu', 'generate_add_elements_admin_bar', 100 ); December 1, 2022 at 10:27 am #2445157 Robert this one works, thanks. Generally, btw., I think it should be an easy to switch off option. December 1, 2022 at 11:11 am #2445293 DavidStaff Customer Support You’re welcome. Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In