Buddypress and Anspress notification, no combine?
Dear sirs,
I read something on site about “how to integrate Anspress notification to Buddypress notification” but seem have no final answer.
Now I need to show BP notif count on main menu by code below. It works well with all BP notif but not get any notif from Anspress. How to BP can show notif from AP? please help.
function my_nav_menu_notif_counter($menu) { if (!is_user_logged_in()) return $menu; else $notif = '<li><div style="color:red;font-weight:bold; margin-left:10px;margin-top:10px;background:#fff;padding:0 3px 0 3px;border-radius:4px">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</div></li>'; $menu = $menu . $notif; return $menu; } add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' );
Thanks a lot.
gakho commented
gakho commented
Thanks and wait for your instruction.
Will answer when I get free.