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.8.7.0

do_action('woocommerce_email_before_order_table') is found 2 times:

  • /templates/emails/email-order-details.php line 22
    defined( 'ABSPATH' ) || exit;
    
    $text_align = is_rtl() ? 'right' : 'left';
    
    do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); ?>
    
    <h2>
    	<?php
    	if ( $sent_to_admin ) {
    		$before = '<a class="link" href="' . esc_url( $order->get_edit_order_url() ) . '">';
    		$after  = '</a>';
    
  • /templates/emails/plain/email-order-details.php line 20
     */
    
    defined( 'ABSPATH' ) || exit;
    
    do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email );
    
    /* translators: %1$s: Order ID. %2$s: Order date */
    echo wp_kses_post( wc_strtoupper( sprintf( esc_html__( '[Order #%1$s] (%2$s)', 'woocommerce' ), $order->get_order_number(), wc_format_datetime( $order->get_date_created() ) ) ) ) . "\n";
    echo "\n" . wc_get_email_order_items( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    	$order,
    	array(
    

See this hook used in plugins:

Examples using woocommerce_email_before_order_table