Sample extension for the Tailor page builder for WordPress
This sample extension is intended to be used an an example for developers.
This extension:
- Registers a new custom content element.
- Registers a new custom wrapper element (including custom JavaScript view).
- Registers a new custom container element.
- Registers a new custom child element, for the custom container.
- Modifies default setting values for sections and buttons.
- Adds a custom control for button elements.
- Adds a visibility condition for an existing button control, based on the value of the new custom control.
If you have questions about how to extend Tailor or would like to see an example use case added to this extension, please get in touch in one of the following ways:
- Added - Simple demonstrations of the element and setting JS APIs.
- Improved - Element rendering functions (in line with Tailor 1.7.0+).
Note: Tailor version 1.7.0 (or newer) is required to use this sample extension.
- Added - Filter to modify the rendered HTML of a given element.
- Improved - The selector for element child containers can now be specified when registering the element.
- Initial version