woocommerce_email_order_items_args
Usage
add_filter( 'woocommerce_email_order_items_args', 'wp_kama_woocommerce_email_order_items_args_filter' ); /** * Function for `woocommerce_email_order_items_args` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_email_order_items_args_filter( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_email_order_items_args
woocommerce/includes/wc-template-functions.php 3441-3454
apply_filters( 'woocommerce_email_order_items_args', array( 'order' => $order, 'items' => $order->get_items(), 'show_download_links' => $order->is_download_permitted() && ! $args['sent_to_admin'], 'show_sku' => $args['show_sku'], 'show_purchase_note' => $order->is_paid() && ! $args['sent_to_admin'], 'show_image' => $args['show_image'], 'image_size' => $args['image_size'], 'plain_text' => $args['plain_text'], 'sent_to_admin' => $args['sent_to_admin'], ) )