3 years, 8 months ago
I added a menu at the bottom of the page when I open the web with a cell phone.
How can I add the number of unread messages with the volume bubbles as it is classic?? For example in Messages (1)
Any suggestions? with css ?
I tried with this and it dont works
$hmag_inbox_count = messages_get_unread_count();
echo ‘<span class=”mobile-menu-builder–links mobile-menu-builder–link-2 “>’.$hmag_inbox_count.'</span>’;
messages_get_unread_count() needs a user_id, so something like message_get_unread_count( get_current_user_id() ) should return the unread count for the user.
message_get_unread_count( get_current_user_id() )
1 year, 1 month ago
i did not much knowledge about it. please suggest accurate answer .
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service