About Site Plugin Extensions

With site plugins, you can create interactive and feature-rich components that seamlessly integrate into Wix’s business solutions, such as Wix Stores, Wix Bookings, and Checkout & Orders, extending their functionality and user experience.

Wix users can easily place site plugins into predefined slots within Wix apps, using the plugin explorer available in all Wix editors.

plugin-flow

Terminology

The following are key terms related to site plugins:

TermDefinition
Host widgetA widget belonging to a Wix business solution, which contains 1 or more slots.
SlotA placeholder within a host widget in which Wix users can add a plugin.
Site pluginA component you can add inside a slot, extending the host widget's functionality.
Plugin APIThe data each host widget exposes to your plugin at runtime.

How site plugins work

A site plugin integrates with its host widget in 2 ways:

  • Visually, by embedding its UI inside one of the host's slots.
  • Logically, by implementing a communication interface with the host through their plugin API.

Slots

Slots are UI placeholders where you can place plugins. Wix apps offer a range of slots across different app widgets.

When developing a plugin, you must declare the specific slots Wix users can add a plugin to. Each host widget passes context data to your plugin as props, which you can use to call Wix APIs, implement your plugin's logic, and extend a host widget's functionality.

For a list of available slots, see About Slots.

Plugin API

Each slot exposes a plugin API, which is a set of context data passed to your plugin at runtime as props. For example, the Product page plugin API provides productId, selectedVariantId, and other data about the current product. Use these props to call related Wix APIs and implement your plugin's logic.

Implementation options

You can add a site plugin extension using:

  • Wix CLI for Apps: Create a site plugin using the CLI and custom element technology, with your code by default deployed on our servers. The creation and setup process of your widget takes place in the terminal. Then, to edit your plugin, you write code directly in your CLI app project's files.
  • Self-hosted custom element: Create a site plugin using custom element technology, with your code deployed on your own server. The custom element is essentially a new HTML tag that you define, which is made available in the Wix editors as a widget.
  • Wix Blocks: Create a site widget in Wix's native app editor. Design your site plugin using visual layout and design tools, and code your business logic using Velo, Wix’s native coding solution.

Editor compatibility

Wix Blocks apps aren't supported in the Wix Harmony editor. Existing Blocks apps remain available for purchase on the Wix App Market for Wix Editor and Wix Studio sites. To learn more, see About Wix Harmony and Blocks.

Design and layout guidelines

Some host widgets include design and UX guidelines for building plugins that integrate with the host widget's layout and Wix's design standards. Follow these guidelines to ensure your plugin appears native to the host widget.

Sandboxing in the editor

Site plugins are sandboxed when rendered in the editor to enhance security. This means they're treated as if they come from a different domain, which impacts access to browser storage APIs and other same-origin resources.

Important: The format of the Wix editor URL is changing due to new cookies introduced for authorization. The new URL format is {username}-{sitename}.{editor|studio|harmony}.wix.com. If your app uses CORS and whitelists specific origins, update your allowed origins to match the new format to avoid blocked requests.

Learn more about handling sandboxing in the editor.

Did this help?