woocommerce_before_resend_order_emails

woocommerce_before_resend_order_emails

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_before_resend_order_emails') is found 3 times:

  • /includes/admin/meta-boxes/class-wc-meta-box-order-actions.php line 140
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    * Fires before an order email is resent.
     *
     * @since 1.0.0
     */
    do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' );
     
    // Send the customer invoice email.
    WC()->payment_gateways();
    WC()->shipping();
    WC()->mailer()->customer_invoice( $order );
  • /includes/admin/meta-boxes/class-wc-meta-box-order-actions.php line 162
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
        add_filter( 'redirect_post_location', array( __CLASS__, 'set_email_sent_message' ) );
     
    } elseif ( 'send_order_details_admin' === $action ) {
     
        do_action( 'woocommerce_before_resend_order_emails', $order, 'new_order' );
     
        WC()->payment_gateways();
        WC()->shipping();
        add_filter( 'woocommerce_new_order_email_allows_resend', '__return_true' );
        WC()->mailer()->emails['WC_Email_New_Order']->trigger( $order->get_id(), $order, true );
        remove_filter( 'woocommerce_new_order_email_allows_resend', '__return_true' );
  • /src/Internal/Orders/OrderActionsRestController.php line 550
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    }
     
    // phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment
    /** This action is documented in includes/admin/meta-boxes/class-wc-meta-box-order-actions.php */
    do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' );
     
    WC()->payment_gateways();
    WC()->shipping();
    WC()->mailer()->customer_invoice( $order );
     
    $user_agent = esc_html( $request->get_header( 'User-Agent' ) );