Public Ticket #3192548

Conversation Admin Email

Closed
Comments
8 Tickets 3
ChrisBrowndog started the conversation 4 years ago on December 20, 2022 at 4:52pm

I'm trying to figure out if there is a way to modify the Conversation email so that it doesn't go to the default admin email address but can be sent to a custom one instead? Just like how most of the admin woocommerce emails can be modified.

Many thanks

Chris

2,762
KingsPlugins replied 4 years ago on December 20, 2022 at 5:03pm

Hi Chris,

This can be done by adding the following PHP code snippet to your site:

add_filter('b2bking_recipient_new_message', function($email, $conversationid){
    $email = '[email protected]';
    return $email;
}, 10, 2);
add_filter('b2bking_recipient_new_message_quote', function($email, $conversationid){
    $email = '[email protected]';
    return $email;
}, 10, 2);

There are 2 emails there, one is for most messages, the other for quote request messages,

(you can set the same email for both)


Kind regards,

Stefan

Sign In