| @@ 400-402 (lines=3) @@ | ||
| 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'] ) ) ); |
|
| 402 | } |
|
| 403 | ||
| 404 | if ( isset( $request['exclude_sale_items'] ) ) { |
|
| 405 | update_post_meta( $post->ID, 'exclude_sale_items', ( true === $request['exclude_sale_items'] ) ? 'yes' : 'no' ); |
|
| @@ 514-516 (lines=3) @@ | ||
| 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'] ) ) ); |
|
| 516 | } |
|
| 517 | ||
| 518 | if ( isset( $data['exclude_sale_items'] ) ) { |
|
| 519 | update_post_meta( $id, 'exclude_sale_items', ( $this->is_true( $data['exclude_sale_items'] ) ) ? 'yes' : 'no' ); |
|