getPhone( )


Gets the phone number used for notifications of activities on your site.

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.

Method Declaration
Copy
function getPhone(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the phone number used for notifications of activities on your site
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getPhone = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getPhone(); // "+ 555-555-5555" });
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?