woocommerce_email_customer_details_fields
Использование
add_filter( 'woocommerce_email_customer_details_fields', 'wp_kama_woocommerce_email_customer_details_fields_filter', 10, 3 ); /** * Function for `woocommerce_email_customer_details_fields` filter-hook. * * @param $array * @param $sent_to_admin * @param $order * * @return */ function wp_kama_woocommerce_email_customer_details_fields_filter( $array, $sent_to_admin, $order ){ // filter... return $array; }
- $array
- -
- $sent_to_admin
- -
- $order
- -
Где вызывается хук
woocommerce_email_customer_details_fields
woocommerce/includes/class-wc-emails.php 558
$fields = array_filter( apply_filters( 'woocommerce_email_customer_details_fields', array(), $sent_to_admin, $order ), array( $this, 'customer_detail_field_is_valid' ) );