Gets the site display name.
Retrieves the site display name, which is the name that has been entered in the Website Settings section of the site's Dashboard.
function getSiteDisplayName(): Promise<string>;
import { createClient } from "@wix/sdk";
import { site } from "@wix/site";
import { site as wixSite } from "@wix/site-site";
const wixClient = createClient({
host: site.host(),
modules: { wixSite },
});
const siteName = await wixClient.wixSite.getSiteDisplayName(); // "My Site"
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.