Okay
  Public Ticket #3192548
Conversation Admin Email
Closed

Comments

  •  3
    ChrisBrowndog started the conversation

    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

  •  1,885
    WebWizards replied

    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