switch to coupons internal get_email_restrictions()

This commit is contained in:
websupporter 2017-07-14 13:37:00 +03:00
parent 7046b480a0
commit 72baa43fe2
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ class WC_Meta_Box_Coupon_Data {
'label' => __( 'Email restrictions', 'woocommerce' ),
'placeholder' => __( 'No restrictions', 'woocommerce' ),
'description' => __( 'List of allowed emails to check against the customer billing email when an order is placed. Separate email addresses with commas.', 'woocommerce' ),
'value' => implode( ', ', (array) get_post_meta( $post->ID, 'customer_email', true ) ),
'value' => implode( ', ', (array) $coupon->get_email_restrictions() ),
'desc_tip' => true,
'type' => 'email',
'class' => '',