addSitePlugin

Developer Preview
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

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

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

署名

コピー
1

Parameters

名称タイプ説明
pluginIdストリングID of the site plugin, which you can find in your app's site plugin extension in the Wix Dev Center.
optionsaddSitePluginOptionsOptions to use when adding a site plugin.

addSitePluginOptions object

コピー
1
名称タイプ説明
placementPluginPlacementInformation about the slot in which you want to add the plugin. Learn more about the slots that are available on Wix app pages.

PluginPlacement object

コピー
1
名称タイプ説明
appDefinitionIdストリングID of the Wix app.
widgetIdストリングID of the host widget.
slotIdストリングID of the slot.

リターン

コピー
1

Errors

について addSitePlugin() function can reject with the following errors:

コードMessage
3001Slot occupied
3002Slot not found
3003Error adding plugin
3004Error replacing existing plugin
3005Error loading modal data
3006Aborted by user
3007Site not published yet

To set up a dashboard client, refer to the setup guide.

Add a site plugin

コピー
1
役に立ちましたか?
はい
いいえ