REST Endpoint API 404
There are few problems: you are using \WP_REST_Server::CREATABLE which is executed only when the request type is POST, if you are just opening the URL in the browser use \WP_REST_Server::READABLE instead (or \WP_REST_Server::ALLMETHODS to accept any request type). your callback is ‘callback’ => [$this, ‘import_csv’], but it should be ‘callback’ => [$this, ‘import_csv_file’], as the … Read more