admin管理员组文章数量:1124035
EDIT: Assuming one already has WP Core installed; would it be possible to offer a predefined bundle of plugins and themes made by various parties, which users could download, and then install in (ideally) one action?
E.g., could a plugin be made that does this? If so, what are the core considerations when creating such a plugin? Are there any limitations to plugins that would make this impossible?
Other Notes:
I am looking to offer this package/plugin for free.
I would like to be able to provide a "download" button on a website (direct link to download the .zip file / plugin)
My target users may not be comfortable using FTP, so I am leaning towards a plugin, if it would work (unless anyone has another idea).
Thank you.
EDIT: Assuming one already has WP Core installed; would it be possible to offer a predefined bundle of plugins and themes made by various parties, which users could download, and then install in (ideally) one action?
E.g., could a plugin be made that does this? If so, what are the core considerations when creating such a plugin? Are there any limitations to plugins that would make this impossible?
Other Notes:
I am looking to offer this package/plugin for free.
I would like to be able to provide a "download" button on a website (direct link to download the .zip file / plugin)
My target users may not be comfortable using FTP, so I am leaning towards a plugin, if it would work (unless anyone has another idea).
Thank you.
Share Improve this question edited Mar 15, 2024 at 3:38 Drewdavid asked Mar 13, 2024 at 19:38 DrewdavidDrewdavid 2191 silver badge12 bronze badges 8- What's the reason for asking this? I ask because it has a huge impact on the answer, as well as wether it will be useful to you. These kinds of questions are usually asked because they're an attempt to solve a problem or need that usually has a far better solution, e.g. distributing a product or deploying to servers, both of which have better/easier/simpler ways than bundles of themes/plugins/WP in a zip – Tom J Nowell ♦ Commented Mar 13, 2024 at 19:51
- Hi! I'd like to allow other users to deploy an installation that includes a predefined set of plugins and a theme; and/or install a bundle of plugins and theme with a single action—rather than create a tutorial requiring users to separately install all of the items independently themselves. I don't know how to be much more specific than that. But I guess I would basically be distributing a "product" that is open source, yes. Thanks! @TomJNowell! – Drewdavid Commented Mar 13, 2024 at 21:52
- 1 Have you looked at GIT? – rudtek Commented Mar 14, 2024 at 1:10
- Composer is probably the most common tool for this kind of setup. – fuxia ♦ Commented Mar 14, 2024 at 8:07
- 1 note that you can't ask for a recomendation here, if it's a service or tool you're expecting as an answer then the software recommendations stack would be more appropraite – Tom J Nowell ♦ Commented Mar 15, 2024 at 11:23
1 Answer
Reset to default 0would it be possible to offer a predefined bundle of plugins and themes made by various parties, which users could download,
Yes, assuming you have the permission of those parties to use their branding and trademarks, and act within the GPL licence, you can just zip the plugins and theme up together and offer it as a download, however...
and then install in (ideally) one action?
No.
The problem is that in order for such a thing to exist you would need to install a tool or install a downloader/installer plugin of some sort first, defeating the entire point of the exercise and making your install process very non-standard and unusual. Users would not be able to rely on familiar practices from other vendors, the .org documentation, or people online for help.
The closest you could get with WordPress core is:
- unzip the file then use multiple WP CLI commands to chain install commands together for plugins and themes
- Install a theme then have it automatically download and install the needed plugins
Option 1 is far beyond the capabilities of those uncomfortable with FTP, and option 2 could be problematic as the additional downloads and installs are a surprise, and include new complexity ( e.g. what if the plugins folder is readonly or managed by git? ).
Instead, it's easier to provide multiple zips in 1, or as multiple downloads, ensuring if the user doesn't install all of them, that the others will still work but with reduced functionality and a warning in the admin area. The user can easily install multiple items via multiple zips one at a time without any FTP/SSH knowledge.
The one case where what you want is "possible" is when using composer
. Defining a package for each plugin/theme then declaring them as dependencies of a meta package would allow a user to run composer install yourmetapackagesname
and it would fetch and install all of them. This is far beyond the abilities of someone struggling with FTP though and requires both SSH access, knowledge of CLI/terminals, and composer installed.
EDIT: Assuming one already has WP Core installed;
The other case it's possible is when you pre-bundle them in a full WordPress install, but this would be suspicious and heavily implies that the copy of WordPress being bundled has.. additions
本文标签: Allowing users to install a predefined bundle of plugins and themes with one action
版权声明:本文标题:Allowing users to install a predefined bundle of plugins and themes with one action 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736610907a1945439.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论