Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter swanepoelsaskia

    (@swanepoelsaskia)

    Thank you for your response.

    Here is the snippet:

    add_action(‘woocommerce_order_status_gplsquote-req’, ‘send_admin_email_for_quote_requests’, 20, 2);

    function send_admin_email_for_quote_requests($order_id, $order) {

    $mailer = WC()->mailer();
    $emails = $mailer->get_emails();
    
    if (isset($emails['WC_Email_New_Order'])) {
        $emails['WC_Email_New_Order']->trigger($order_id);
    }

    }

Viewing 1 replies (of 1 total)