Skip to main content

set_user_unread_count_for_thread

Set user unread count for specific conversation

REQUIREMENTS

To be able to implement this guide, you need to learn how to insert PHP snippets to your website.

You can find guide here: WP Beginner

Compatibility
This function compatible with Better Messages 2.7.6 or higher
<?php

$user_id = 3;
$thread_id = 3;
$unread_count = 1;

Better_Messages()->functions->set_user_unread_count_for_thread( $user_id, $thread_id, $unread_count );