/** * Initialize class */ private function init() { // Setup Rewrite Rules WPSWS_Rewrite_Rules::get(); // Default webservice WPSWS_Webservice_get_posts::get(); if (is_admin()) { // Backend // Setup settings WPSWS_Settings::get(); } else { // Frondend // Catch request WPSWS_Catch_Request::get(); } }