@@ 451-456 (lines=6) @@ | ||
448 | public function customer_details( $order, $sent_to_admin = false, $plain_text = false ) { |
|
449 | $fields = array(); |
|
450 | ||
451 | if ( $order->customer_note ) { |
|
452 | $fields['customer_note'] = array( |
|
453 | 'label' => __( 'Note', 'woocommerce' ), |
|
454 | 'value' => wptexturize( $order->customer_note ) |
|
455 | ); |
|
456 | } |
|
457 | ||
458 | if ( $order->billing_email ) { |
|
459 | $fields['billing_email'] = array( |
|
@@ 465-470 (lines=6) @@ | ||
462 | ); |
|
463 | } |
|
464 | ||
465 | if ( $order->billing_phone ) { |
|
466 | $fields['billing_phone'] = array( |
|
467 | 'label' => __( 'Tel', 'woocommerce' ), |
|
468 | 'value' => wptexturize( $order->billing_phone ) |
|
469 | ); |
|
470 | } |
|
471 | ||
472 | $fields = array_filter( apply_filters( 'woocommerce_email_customer_details_fields', $fields, $sent_to_admin, $order ), array( $this, 'customer_detail_field_is_valid' ) ); |
|
473 |