addSitePlugin( )


Important:

This API is in Developer Preview and is subject to change.

Adds a site plugin to a slot within an app created by Wix.

This function can only be used in page code files for dashboard pages created in the Wix editor or with Wix Blocks.

The addSitePlugin() function returns a Promise that resolves when the plugin is added to the site.

Note: To use this function, Your app must have a site plugin extension. Learn more about site plugins.

Method Declaration
Copy
Method Parameters
pluginIdstringRequired

ID of the site plugin, which you can find in your app's site plugin extension in the Wix Dev Center.


optionsAddSitePluginOptionsRequired

Options to use when adding a site plugin.

Was this helpful?
Yes
No