Title: [Plugin: JSON API] Documentation Typo
Last modified: August 19, 2016

---

# [Plugin: JSON API] Documentation Typo

 *  [jli](https://wordpress.org/support/users/jli/)
 * (@jli)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-json-api-documentation-typo/)
 * There is a typo in the example given to create an external controller, add_hello_controller
   function is missing a return statement, here is the corrected code:
 *     ```
       function add_hello_controller($controllers) {
         $controllers[] = 'hello';
         return $controllers;
       }
       add_filter('json_api_controllers', 'add_hello_controller');
   
       function set_hello_controller_path() {
         return "/path/to/theme/hello.php";
       }
       add_filter('json_api_hello_controller_path', 'set_hello_controller_path');
       ```
   
 * This is one of the most usefull plugin and well documented plugin i’ve faced 
   so far!
 * Good job !
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [jli](https://wordpress.org/support/users/jli/)
 * (@jli)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-json-api-documentation-typo/#post-1768105)
 * Gosh this forum is not user friendly :X
 *  Plugin Author [dphiffer](https://wordpress.org/support/users/dphiffer/)
 * (@dphiffer)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-documentation-typo/#post-1768362)
 * Thanks for the heads up jli!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: JSON API] Documentation Typo’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dphiffer](https://wordpress.org/support/users/dphiffer/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-documentation-typo/#post-1768362)
 * Status: not resolved