Support » Plugin: Events Manager » Removing Events Manager Quick links from admin bar

Viewing 10 replies - 1 through 10 (of 10 total)
  • you can try this snippet (paste in your theme functions.php)

    function mytheme_admin_bar_render() {
     global $wp_admin_bar;
    add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );

    basically, just use print_r to remove more (by looking for the their id)

    Hello aglonwl,

    Thank you for the reply, I am using buddypress and i need the admin bar, i just want to remove the quick links of events manager like : create event or location from the admin bar.

    try this snippet

    function mytheme_admin_bar_render() {
     global $wp_admin_bar;
    add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );

    Thanks for the quick reply. New event creation link has gone, but i stil see the new location creation link. Any more fix ?

    hi, just try to use print_r($wp_admin_bar); then you will see an array of menus that can be removed then used its id inside the function


    Am sorry but where to use ? I just need to get rid of events manager links in wp-admin bar

    please see my first snippet line //print_r($wp_admin_bar); just remove // then refresh your page and see the array of id’s

    Could you please explain where to use ? to see the array of ids ?

    if you use this print_r($wp_admin_bar); then refresh your frontend page and you will see something like this

    WP_Admin_Bar Object ( [nodes:private] => Array ( [user-actions] => stdClass Object ( [id] => user-actions [title] => [parent] => my-account [href] => [group] => 1 [meta] => Array ( ) ) [user-info] => stdClass Object ( [id] => user-info.......

    then noticed [id] => user-actions; you need to do something like this in my shared snippet $wp_admin_bar->remove_menu('user-actions');

    Plugin Author Marcus


    NetWebLogic Support

    try adding this to your functions.php

    function my_em_remove_admin_bar(){
    remove_action( 'admin_bar_menu', 'em_admin_bar_mod', 21 );
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Removing Events Manager Quick links from admin bar’ is closed to new replies.