woocommerce_email_before_order_table

woocommerce_email_before_order_table

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_email_before_order_table') is found 2 times:

  • /templates/emails/email-order-details.php line 42

    * @param bool $plain_text Whether it’s a plain text email.
    * @param WC_Email $email Email object.
    * @since 2.5.0
    */
    do_action( ‘woocommerce_email_before_order_table’, $order, $sent_to_admin, $plain_text, $email ); ?>

    Share this:

  • /templates/emails/plain/email-order-details.php line 28
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    if ( $email_improvements_enabled ) {
        add_filter( 'woocommerce_order_shipping_to_display_shipped_via', '__return_false' );
    }
     
    do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email );
     
    if ( $email_improvements_enabled ) {
        /* translators: %1$s: Order ID. %2$s: Order date */
        echo wp_kses_post( sprintf( esc_html__( 'Order #%1$s (%2$s)', 'woocommerce' ), $order->get_order_number(), wc_format_datetime( $order->get_date_created() ) ) ) . "\n";
        echo "\n==========\n";
    } else {
  • See this hook used in plugins:

    Examples using woocommerce_email_before_order_table