$query The query arguments to send to the remote API. * @param bool $associative (optional) When TRUE, returned objects will be converted into * associative arrays. * @return array|object|WP_Error */ public function get_items( array $query, bool $associative = false ); /** * Returns whether the endpoint is available for access by the current * user. * * @since 3.14.0 Renamed from `is_user_allowed_to_make_api_call()`. * @since 3.16.0 Added the `$request` parameter. * * @param WP_REST_Request|null $request The request object. * @return bool */ public function is_available_to_current_user( $request = null ): bool; }