I’d like to change where the ‘Howdy’ link gets you when you click on it.
I have a website with buddypress and instead of getting users to their profile page I want to get them to their ‘Activity’ tab.
How can I change the link?
Thanks,
Kat
I’d like to change where the ‘Howdy’ link gets you when you click on it.
I have a website with buddypress and instead of getting users to their profile page I want to get them to their ‘Activity’ tab.
How can I change the link?
Thanks,
Kat
Comments are closed.
It’s not well documented, but the
add_node
andadd_menu
methods of theWP_Admin_Bar
class can be used not only to create new menu or nodes, but also to update an existing menu or node.So i went ahead and tracked down the code that WordPress initially uses to create that item in the admin bar, replicated it, then made adjustments to the Howdy text and used an example link to google. Simply make your own adjustments as appropriate to the example code.
Example code:
Update the user account menu in the admin bar
I hope that helps, have fun. 🙂
Here is a easier and cleaner way…call the node needed and use the part needed and replace what you want to update