• hello, i have to place some common code for each API method in my controller constructor.. the problem that now JSON_API_XXX_Controller get’s listed as API method! how can i hide it and still use my constructor? thanks in advance!

    class JSON_API_XXX_Controller {
    
    public JSON_API_XXX_Controller(){
     //some code goes here for both foo and bar
    }
    
    public function foo(){}
    
    public function bar(){}
    
    }

    https://wordpress.org/plugins/json-api/

The topic ‘JSON API custom controller constuctor’ is closed to new replies.