action “woocommerce_before_resend_order_emails” doesn’t pass 2nd parameter
-
Hello
You use
do_action( 'woocommerce_before_resend_order_emails', $order );
in file /includes/class-wcpdf-admin.php, line 628But WooCommerce passes 2nd parameter ($email_type), for example,
do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' );
You can check https://github.com/woocommerce/woocommerce/blob/master/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php#L100
I have to report this bug as our plugin uses hook “woocommerce_before_resend_order_emails”.
Thanks, Alex
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘action “woocommerce_before_resend_order_emails” doesn’t pass 2nd parameter’ is closed to new replies.