Gets the site description.
The getDescription()
function returns a Promise that resolves to the site's
description information.
The retrieved description is the description that has been entered in the General Info section of your site's Dashboard.
function getDescription(): Promise<string>;
import { Permissions, webMethod } from "wix-web-module";
import wixSiteBackend from "wix-site-backend";
export const getDescription = webMethod(Permissions.Anyone, () => {
return wixSiteBackend.generalInfo.getDescription(); // "Description text."
});
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.