Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created September 9, 2014 23:55
Show Gist options
  • Save Shelob9/0135a9ab9c8e6cc172e1 to your computer and use it in GitHub Desktop.
Save Shelob9/0135a9ab9c8e6cc172e1 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'json_query_vars', function( $valid_vars ) {
$valid_vars = array_merge( $valid_vars, array( 'meta_key', 'meta_value' ) );
return $valid_vars;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment