• Resolved boo6ie

    (@boo6ie)


    Hi,

    Currently it’s possible to activate an option to send a copy of the PDF to the administrator by e-mail.

    Is it possible to change this email address?

    I don’t want to add another one but just change this email address to another when using the plugin.

    Thank you in advance for your help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Jensen

    (@dkjensen)

    Hi @boo6ie

    You can use the following code to change the recipient email address:

    add_filter( 'wc_cart_pdf_admin_copy_email', function( $email, $mpdf, $customer ) {
    	return 'email@example.com';
    }, 10, 3 );

    You can also return an array to designate multiple recipients

    Thread Starter boo6ie

    (@boo6ie)

    Thank you for th snippet!
    It’s work perfectly 🙂

    Plugin Author David Jensen

    (@dkjensen)

    Glad to hear that 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change the recipient’s email address’ is closed to new replies.