| @@ 396-398 (lines=3) @@ | ||
| 393 | update_post_meta( $post->ID, 'free_shipping', ( true === $request['free_shipping'] ) ? 'yes' : 'no' ); |
|
| 394 | } |
|
| 395 | ||
| 396 | if ( isset( $request['product_categories'] ) ) { |
|
| 397 | update_post_meta( $post->ID, 'product_categories', array_filter( array_map( 'intval', $request['product_categories'] ) ) ); |
|
| 398 | } |
|
| 399 | ||
| 400 | if ( isset( $request['excluded_product_categories'] ) ) { |
|
| 401 | update_post_meta( $post->ID, 'exclude_product_categories', array_filter( array_map( 'intval', $request['excluded_product_categories'] ) ) ); |
|
| @@ 510-512 (lines=3) @@ | ||
| 507 | update_post_meta( $id, 'free_shipping', ( $this->is_true( $data['enable_free_shipping'] ) ) ? 'yes' : 'no' ); |
|
| 508 | } |
|
| 509 | ||
| 510 | if ( isset( $data['product_category_ids'] ) ) { |
|
| 511 | update_post_meta( $id, 'product_categories', array_filter( array_map( 'intval', $data['product_category_ids'] ) ) ); |
|
| 512 | } |
|
| 513 | ||
| 514 | if ( isset( $data['exclude_product_category_ids'] ) ) { |
|
| 515 | update_post_meta( $id, 'exclude_product_categories', array_filter( array_map( 'intval', $data['exclude_product_category_ids'] ) ) ); |
|