woocommerce_email_fulfillment_items_args
Filter to modify the arguments for the email fulfillment items.
Использование
add_filter( 'woocommerce_email_fulfillment_items_args', 'wp_kama_woocommerce_email_fulfillment_items_args_filter' );
/**
* Function for `woocommerce_email_fulfillment_items_args` filter-hook.
*
* @param array $args The arguments for the email fulfillment items.
*
* @return array
*/
function wp_kama_woocommerce_email_fulfillment_items_args_filter( $args ){
// filter...
return $args;
}
- $args(массив)
- The arguments for the email fulfillment items.
Список изменений
| С версии 10.1.0 | Введена. |
Где вызывается хук
woocommerce_email_fulfillment_items_args
woocommerce/includes/wc-template-functions.php 4097-4111
apply_filters( 'woocommerce_email_fulfillment_items_args', array( 'order' => $order, 'fulfillment' => $fulfillment, 'items' => $order_items_filtered, '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'], ) )