Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    You can remove all adminbar links by doing:

    remove_action( 'admin_bar_menu', 'my_calendar_admin_bar', 200 );

    There isn’t a way to selectively remove links.

    Thread Starter reisrui

    (@reisrui)

    Hello and thanks.
    Sorry for noob level, but where do I put that code?

    Plugin Author Joe Dolson

    (@joedolson)

    You generally need to built it into the ‘init’ action:

    add_action( 'init' , 'my_remove_actions' , 15 );
    function my_remove_actions() {
            remove_action( 'admin_bar_menu', 'my_calendar_admin_bar', 200 );
    }

    You could add that code into your theme’s functions.php file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove top links’ is closed to new replies.