@@ 768-775 (lines=8) @@ | ||
765 | 'default' => array(), |
|
766 | 'sanitize_callback' => 'wp_parse_id_list', |
|
767 | ); |
|
768 | if ( ! $taxonomy->hierarchical ) { |
|
769 | $query_params['offset'] = array( |
|
770 | 'description' => __( 'Offset the result set by a specific number of items.' ), |
|
771 | 'type' => 'integer', |
|
772 | 'sanitize_callback' => 'absint', |
|
773 | 'validate_callback' => 'rest_validate_request_arg', |
|
774 | ); |
|
775 | } |
|
776 | $query_params['order'] = array( |
|
777 | 'description' => __( 'Order sort attribute ascending or descending.' ), |
|
778 | 'type' => 'string', |
|
@@ 809-816 (lines=8) @@ | ||
806 | 'default' => false, |
|
807 | 'validate_callback' => 'rest_validate_request_arg', |
|
808 | ); |
|
809 | if ( $taxonomy->hierarchical ) { |
|
810 | $query_params['parent'] = array( |
|
811 | 'description' => __( 'Limit result set to resources assigned to a specific parent.' ), |
|
812 | 'type' => 'integer', |
|
813 | 'sanitize_callback' => 'absint', |
|
814 | 'validate_callback' => 'rest_validate_request_arg', |
|
815 | ); |
|
816 | } |
|
817 | $query_params['post'] = array( |
|
818 | 'description' => __( 'Limit result set to resources assigned to a specific post.' ), |
|
819 | 'type' => 'integer', |