• Resolved dynamo gold

    (@dynamo-gold)


    Unfortunately it does not seem to be possible to remove the Events Calendar from the admin bar (when logged in). I tried removing it by adding the following code to functions.php:

    function custom_toolbar_link($wp_admin_bar) {
    	$wp_admin_bar->remove_node('tribe-events');
    }
    add_action('admin_bar_menu', 'custom_toolbar_link', 999);

    $wp_admin_bar->get_nodes() does not list the item. none of the following ids seems to work: tribe-events, tribe-events-group, tribe-events-view-calendar (although visible in the source html code) as described here.

    Any suggestions?

    https://wordpress.org/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
  • Plugin Author Brian

    (@brianjessee)

    Hi,

    I tested the coding too.

    Not sure why it is not working.

    However, if you add the following to your wp-config.php file it should remove the menu:

    define( 'TRIBE_DISABLE_TOOLBAR_ITEMS', true );

    Let me know if that works.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Events Calendar from admin bar’ is closed to new replies.