Change Email Recipient for "New Message" & "Quote" Emails

The new message and quote request message emails of the plugin are dynamically generated (recipient changes depending on who sends the email).

By default, the admin receives these emails at the WordPress Administration email address.

To set a different email address, you can add this PHP code snippet to your site:

add_filter('b2bking_recipient_new_message', function($recipient, $conversationid){
	return 'new.email@gmail.com';
}, 10, 2);
add_filter('b2bking_recipient_new_message_quote', function($recipient, $conversationid){
	return 'new.email@gmail.com';
}, 10, 2);

In the above code, you can change new.email@gmail.com to any email address you would like.

A PHP code snippet like the one above can be added to your child theme's functions.php or by following our guide here.

Powered by BetterDocs