Changes fields and filters order types
This commit is contained in:
parent
90e83399a1
commit
110066a85a
|
@ -244,6 +244,7 @@ class TAINACAN_REST_Controller extends WP_REST_Controller {
|
|||
* @param $args
|
||||
*
|
||||
* @return mixed
|
||||
* @throws Exception
|
||||
*/
|
||||
private function prepare_meta($mapped, $request, $query, $mapped_v, $args){
|
||||
$request_meta_query = $request[$mapped];
|
||||
|
|
|
@ -138,14 +138,16 @@ class Collections extends Repository {
|
|||
'fields_order' => [
|
||||
'map' => 'meta',
|
||||
'title' => __( 'Ordination fields', 'tainacan' ),
|
||||
'type' => 'array',
|
||||
'type' => 'array/object/string',
|
||||
'items' => ['type' => 'array/string/integer/object'],
|
||||
'description' => __( 'Collection fields ordination', 'tainacan' ),
|
||||
//'validation' => v::stringType(),
|
||||
],
|
||||
'filters_order' => [
|
||||
'map' => 'meta',
|
||||
'title' => __( 'Ordination filters', 'tainacan' ),
|
||||
'type' => 'array',
|
||||
'type' => 'array/object/string',
|
||||
'items' => ['type' => 'array/string/integer/object'],
|
||||
'description' => __( 'Collection filters ordination', 'tainacan' ),
|
||||
//'validation' => v::stringType(),
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue