Skip to content

Instantly share code, notes, and snippets.

@ultimatemember
Last active January 18, 2023 04:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ultimatemember/66259b3282b232a5b447 to your computer and use it in GitHub Desktop.
Save ultimatemember/66259b3282b232a5b447 to your computer and use it in GitHub Desktop.
Private Messages API: Get number of unread messages for a user
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