Search...
getPhone( )
Gets the phone number used for notifications of activities on your site.
Description
The getPhone()
function returns a Promise that resolves to the site's
phone number information.
The retrieved phone number is the phone number that has been entered in the General Info section of your site's Dashboard.
Syntax
function getPhone(): Promise<string>
getPhone Parameters
This function does not take any parameters.
Returns
Fulfilled - An object containing the site phone number information. Rejected - Error message.
Return Type:
Promise<string>
Was this helpful?
Get the phone number used for notifications of activities on your site
Copy Code
1import wixSiteBackend from 'wix-site-backend';23export function getPhone() {4 return wixSiteBackend.generalInfo.getPhone(); // "+ 555-555-5555"5}