version . '/frontend/'; $path_rest_api = LP_PLUGIN_PATH . 'inc/rest-api/' . $path_version; foreach ( $list_rest_frontend as $rest_frontend ) { include_once realpath( $path_rest_api . $rest_frontend ); } do_action( 'learn-press/core-api/includes' ); } public function rest_api_register_routes() { $controllers = array( 'LP_REST_Settings_Controller', 'LP_REST_Users_Controller', 'LP_REST_Courses_Controller', 'LP_REST_Lazy_Load_Controller', 'LP_REST_Profile_Controller', 'LP_REST_Widgets_Controller', 'LP_REST_Addon_Controller', 'LP_Rest_Material_Controller', 'LP_REST_Instructor_Controller', 'LP_REST_AJAX_Controller', 'LP_REST_Gateway_Webhook_Controller', ); $this->controllers = apply_filters( 'learn-press/core-api/controllers', $controllers ); parent::rest_api_register_routes(); } }