Last active
June 10, 2022 21:01
-
-
Save lukecav/fb1f6f6721679aed17e0f0ad2bf9449d to your computer and use it in GitHub Desktop.
Remove UpdraftPlus plugin from the admin bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updraftplus_remove_toolbar_menu() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('updraft_admin_node'); | |
} | |
add_action('wp_before_admin_bar_render', 'updraftplus_remove_toolbar_menu', 999); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://digwp.com/2016/06/remove-toolbar-items/