Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to re-produce Notifications in a Custom Admin bar?


Brandon Allen
Participant

@cnorris23

I just tried the code you posted above, and it works. I get all the correct output. Are you actually logged into the site when you test this. The way the function works is that it won’t print any of the notification menu unless you are logged in. Also, I would actually move the my_bp_adminbar_notifications_menu() function to your theme’s functions.php file, and then leave the <?php if( function_exists('my_bp_adminbar_notifications_menu') ) my_bp_adminbar_notifications_menu(); ?> as is.

Skip to toolbar