getSiteInfo()

Returns information about the site's editor, including whether it’s available, currently active, and its publishing status.

Method Declaration

Copy

Parameters

This method takes no parameters.

Returns

Copy

SiteInfo Object

Copy
NameTypeDescription
wixEditorAvailablebooleanWhether Wix Editor or Wix Studio is connected to this site. Returns false for sites that use Wix Vibe.
wixEditorActivebooleanWhether Wix Editor or Wix Studio is currently active and accessible. Requires both availability and a valid editor URL.
editorUrlstringOptional. The URL to access the editor for this site, if available.
publishedbooleanOptional. Whether the site is published. Only available for sites using Wix Vibe.

Examples

Note: To call this method in self-hosted apps, you need to create a client. See the setup guide for more details.

Verify whether Wix Editor or Wix Studio is available and active

Copy

Handle site publishing status

Copy

Conditional UI based on Wix Editor or Wix Studio availability

Copy
Did this help?