I'm working on a new theme and I'd like to show the total PM count, but read and unread combined.
Example
[envelope icon] 34 (3)
Where 34 is the total number of PMs the user has, and 3 is how many unread.
in your example if you mean from the user who is logged in and if global var $context is set
string -> $context['messages'] does then 34
string - > $context['unread_messages'] does 3
Thank you! Life-saver.