Unable to Remove “Events” from WP Toolbar

Solution:

So, after further research, we confirmed the above but not without a solution.

To fix the above, we are now using the code snippet provided below.

Cheers!

——-

function remove_toolbar_menu_items() {

global $wp_admin_bar;
$wp_admin_bar->remove_menu('tribe-events');

}
add_action('wp_before_admin_bar_render', 'remove_toolbar_menu_items', 999);

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer