To reset the counter in user dashboard – Inbox for all user accounts, you can apply this code
File:
\wprentals\user_dashboard_inbox.php
Add the code as in screenshot
update_user_meta($userID,'unread_mess',0);
![]()
Check an user inbox to confirm Inbox counter is reset.
Remove the code and save.