generate functionTue, 15 Nov 2022

woocommerce, of new order email to customer, add text before items

add_filter( 'woocommerce_email_order_items_args', 'jk_woocommerce_email_order_items_args', 10, 1 ); function jk_woocommerce_email_order_items_args( $args ) { $args['show_sku'] = false; $args['show_image'] = false; $args['image_size'] = array( 32, 32 ); $args['plain_text'] = false; $args['sent_to_admin'] = false; $args['show_download_links'] = true; $args['show_purchase_note'] = true; $args['show_shipping'] = true; $args['show_tax'] = false; // add the text after the COST $args['after'] = " <p> Please note that we will only be able to ship your order after we have received payment. </p> "; return $args; }

Questions about programming?Chat with your personal AI assistant