This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |