-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add on panel #3
Comments
For significant add-ons, the best approach would be to create an extension (like the new Portfolio extension, or the upcoming WooCommerce extension). For smaller addons or features within Tailor, there are plans to utilise the Settings page in the administrator backend to allow users to activate and deactivate features. What sort of things did you have in mind in terms of "add ons"? Do you envision the panel being in the frontend (i.e., builder interface) or in the backend (e.g., Tailor Settings page)? |
Sorry for the late answer. Would be both for frontend and backend. The idea would be to activate/deactivate based on client, so we would split tailor into modules, like you did with portfolio. |
What sorts of modules did you have in mind? Are you mostly thinking about a way to enable/disable elements? A few thoughts from my side:
In the majority of cases, end users and theme developers could select (or recommend) only those extensions that are appropriate. If, for example, a theme developer didn't want a particular element to be available when using their theme, they could easily disable it using the 'tailor_register_elements' hook; the same is true for plugin developers (though I wouldn't necessarily recommend that a plugin disable core elements without making it clear that it is doing so). Another option could be for theme or plugin developer to add a new panel to Tailor (or section to the existing Settings panel) in which these types of options could be displayed. Depending on what exactly you envision, there are quite a few ways of going about it.. |
As per the comment above, it's possible through the use of filters, actions and the built in API functions to add, change and remove most features in Tailor. Elements can also be set up to check for dependencies (see active_callback). For significant additions, an extension plugin should be considered. If someone would like to elaborate on what 'modules' within Tailor could look like and what value they would offer over and above the items mentioned, please raise an issue and I will be happy to consider it. |
Why not build into Tailor an area where we could activate/deactivate add ons, being it more modular?
The text was updated successfully, but these errors were encountered: