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).

The admin receives these emails by default at the WordPress Administration email address.

To change this 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, you can change new.email@gmail.com to any email 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