Title: Message Count for User
Last modified: February 1, 2021

---

# Message Count for User

 *  [Ali](https://wordpress.org/support/users/alijafarian/)
 * (@alijafarian)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/message-count-for-user/)
 * Hello Shamim,
 * Thank you for your work on this plugin! Is there an existing hook or function
   to detect a user’s message count?
 * We have used your examples to display the message count on the main Messages 
   page, but we’re trying to detect how many messages a user has when not on that
   page.
 * Any help is greatly appreciated!
 * Cheers,
    Ali

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/message-count-for-user/#post-13992148)
 * You can use `fep_get_user_message_count('total')` or `fep_get_user_message_count('
   unread')`

Viewing 1 replies (of 1 total)

The topic ‘Message Count for User’ is closed to new replies.

 * ![](https://ps.w.org/front-end-pm/assets/icon-256x256.gif?rev=2309447)
 * [Front End PM](https://wordpress.org/plugins/front-end-pm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-pm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-pm/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-pm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-pm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-pm/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/message-count-for-user/#post-13992148)
 * Status: not resolved