Hi there!
There is no such feature built in, you can only use this hook to customly code notifications about new messages to admin at your website:
https://www.better-messages.com/docs/development/php-actions/better_messages_message_sent
Thanks!
Thread Starter
bing4
(@bing4)
Thank you for advice, but after pasting this code
add_action( ‘better_messages_message_sent’, ‘on_message_sent’, 10, 1 );
function on_message_sent( $message ){
// Sender ID
$user_id = (int) $message->sender_id;
// Recipients User IDs
$recipients = (array) $message->recipients;
// Conversation ID
$thread_id = $message->thread_id;
// Message ID
$message_id = $message->id;
// Message Content
$content = $message->message;
}
to functions.php of my theme there was no e-mail messages. May be it was delayed ? Or need more configurations ?
Thread Starter
bing4
(@bing4)
Maybe you can add email notifications about new unread messages and their contents? Because if I’m not on the site for a while, I still won’t be able to receive notifications about new messages, right?
Hi there!
If you mean email notifications of messages that are sent to you, there is such functionality in the plugin. Check if the email notifications enabled in plugin settings under notifications tab.
If they are enabled, but do not send still, ensure that your WP Cron is working properly, you can use this plugin for this:
https://ww.wp.xz.cn/plugins/wp-crontrol/
Thanks!