Fixed return type

This commit is contained in:
Claudio Sanches 2016-03-02 19:03:09 -03:00
parent d48442f4ed
commit 36b38fc6e0
1 changed files with 2 additions and 0 deletions

View File

@ -370,6 +370,8 @@ class WC_REST_Coupons_Controller extends WC_REST_Posts_Controller {
if ( isset( $request['customer_emails'] ) ) {
update_post_meta( $post->ID, 'customer_email', array_filter( array_map( 'sanitize_email', $request['customer_emails'] ) ) );
}
return true;
}
/**