Allow meta_key/value in rest api filter

@claudiosmweb Closes #11518
This commit is contained in:
Mike Jolley 2016-07-25 13:12:37 +01:00
parent fabf35872f
commit 9b60e0543f
1 changed files with 4 additions and 0 deletions

View File

@ -574,6 +574,10 @@ abstract class WC_REST_Posts_Controller extends WC_REST_Controller {
'posts_per_page',
'meta_query',
'tax_query',
'meta_key',
'meta_value',
'meta_compare',
'meta_value_num',
);
$valid_vars = array_merge( $valid_vars, $rest_valid );