|
@@ 694-701 (lines=8) @@
|
| 691 |
|
'default' => array(), |
| 692 |
|
'sanitize_callback' => 'wp_parse_id_list', |
| 693 |
|
); |
| 694 |
|
if ( ! $taxonomy->hierarchical ) { |
| 695 |
|
$params['offset'] = array( |
| 696 |
|
'description' => __( 'Offset the result set by a specific number of items.', 'woocommerce' ), |
| 697 |
|
'type' => 'integer', |
| 698 |
|
'sanitize_callback' => 'absint', |
| 699 |
|
'validate_callback' => 'rest_validate_request_arg', |
| 700 |
|
); |
| 701 |
|
} |
| 702 |
|
$params['order'] = array( |
| 703 |
|
'description' => __( 'Order sort attribute ascending or descending.', 'woocommerce' ), |
| 704 |
|
'type' => 'string', |
|
@@ 735-742 (lines=8) @@
|
| 732 |
|
'default' => false, |
| 733 |
|
'validate_callback' => 'rest_validate_request_arg', |
| 734 |
|
); |
| 735 |
|
if ( $taxonomy->hierarchical ) { |
| 736 |
|
$params['parent'] = array( |
| 737 |
|
'description' => __( 'Limit result set to resources assigned to a specific parent.', 'woocommerce' ), |
| 738 |
|
'type' => 'integer', |
| 739 |
|
'sanitize_callback' => 'absint', |
| 740 |
|
'validate_callback' => 'rest_validate_request_arg', |
| 741 |
|
); |
| 742 |
|
} |
| 743 |
|
$params['product'] = array( |
| 744 |
|
'description' => __( 'Limit result set to resources assigned to a specific product.', 'woocommerce' ), |
| 745 |
|
'type' => 'integer', |