Last active
January 18, 2023 04:52
-
-
Save ultimatemember/66259b3282b232a5b447 to your computer and use it in GitHub Desktop.
Private Messages API: Get number of unread messages for a user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global $um_messaging; | |
$user_id = 'xx'; // enter user id here | |
$count = $um_messaging->api->get_unread_count( $user_id ); | |
echo $count; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment