• Resolved Corey Smith

    (@cthesmith)


    Is there a way to remove the sprout admin bar shortcuts in the admin bar, as well as the “sprout apps” link in the admin menu?

    I was actually able to remove the “estimates” link using remove_menu_page, but I can’t seem to find a way to remove the other links.

    Thanks!

    https://ww.wp.xz.cn/plugins/sprout-invoices/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Dan Cameron

    (@dancameron)

    You can remove nodes using the admin_bar_menu action. Or you could simply use remove_action, e.g. remove_action( 'admin_bar_menu', array( 'SI_Admin_Settings', 'sa_admin_bar' ), 62 );

    Same goes for admin_menu with the menus, however remove_action may not work and instead you’ll need to hook in after it’s added and remove it.

    Have a great weekend!

Viewing 1 replies (of 1 total)

The topic ‘Remove Admin Bar and Admin Menu Items’ is closed to new replies.