Search.../

getBusinessName( )

Gets the site business name.

Description

The getBusinessName() function returns a Promise that resolves to the site's business name information.

The retrieved business name is the name that has been entered in the General Info section of your site's Dashboard.

Syntax

function getBusinessName(): Promise<string>

getBusinessName Parameters

This function does not take any parameters.

Returns

Fulfilled - An object containing the site business name information. Rejected - Error message.

Return Type:

Promise<string>

Was this helpful?

Get the site business name

Copy Code
1import wixSiteBackend from 'wix-site-backend';
2
3export function getBusinessName() {
4 return wixSiteBackend.generalInfo.getBusinessName(); // "My Business Name"
5}