Betrachten Sie die folgende Klasse. <?php class MCQAcademy_Endpoint extends WP_REST_Controller { /** * Register the routes for the objects of the controller. */ public function register_routes() { $version = '1'; $namespace = 'custompath/v' . $version; $base = 'endpointbase';