admin管理员组文章数量:1431398
Are there any best practice guidelines regarding how a plugin should distribute a third-party program with it's own installation? If there are no guidelines, then what are the most popular methods?
For example, our plugin requires the installation of a third-party (GPL compatible) program. To ease installation, the third-party program would be included with our plugin and it will offer to run a version of the program that is compatible with their hosting environment that is included in our plugins assets directory (or other directory?). Updates to the third-party program would be handled by updating it along with our own plugins updates ([our version].[third-party-version]).
Are there any best practice guidelines regarding how a plugin should distribute a third-party program with it's own installation? If there are no guidelines, then what are the most popular methods?
For example, our plugin requires the installation of a third-party (GPL compatible) program. To ease installation, the third-party program would be included with our plugin and it will offer to run a version of the program that is compatible with their hosting environment that is included in our plugins assets directory (or other directory?). Updates to the third-party program would be handled by updating it along with our own plugins updates ([our version].[third-party-version]).
Share Improve this question asked Apr 22, 2019 at 21:53 Brenda.ZMPOVBrenda.ZMPOV 13 bronze badges 5- You mean a third party library? – norman.lol Commented Apr 22, 2019 at 22:12
- What type of program? Where's it supposed to run? – Jacob Peattie Commented Apr 23, 2019 at 15:35
- @leymannx not a library, a program written in C++ – Brenda.ZMPOV Commented Apr 23, 2019 at 16:52
- @JacobPeattie a program that makes RPC calls available, so I'm doing service calls, but locally to the local server. – Brenda.ZMPOV Commented Apr 23, 2019 at 16:53
- Unless this is a PHP library that can be bundled with the plugin, it has no place inside a plugin, and should be distributed separately. – Jacob Peattie Commented Apr 24, 2019 at 2:04
2 Answers
Reset to default 0their rules specifically say
Externally loading code from documented services is permitted.
however all the related examples are about javascript or wordpress plugins.
Management services that interact with and push software down to a site are permitted, provided the service handles the interaction on it’s own domain and not within the WordPress dashboard.
which doesn't apply since I'm not providing a remote service but a local service. (unless an http download counts as a "management service")
I emailed [email protected]
and got an official response.
You cannot include the binary, nor can you one-click to install.
One of the most common methods used for this is the TGMPA plugin: http://tgmpluginactivation/
Which supports customizing the source
for the plugin, if it's not a standard WordPress repository plugin:
http://tgmpluginactivation/configuration/
本文标签: third party applicationsBest practicespopular methods for distributing a program with a plugin
版权声明:本文标题:third party applications - Best practicespopular methods for distributing a program with a plugin? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745552420a2663004.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论