Skip to content

Instantly share code, notes, and snippets.

View mrunwal's full-sized avatar

Manish Runwal mrunwal

View GitHub Profile
@dphiffer
dphiffer / example.php
Last active August 29, 2015 14:02
Using meta_query with JSON API
<?php
// 1. The class name must match the filename (i.e., "foo.php" for JSON_API_Foo_Controller)
// 2. Save this in your themes folder
// 3. Activate your controller under Settings > JSON API
class JSON_API_Example_Controller {
public function get_posts_by_meta_query() {
global $json_api;