简体   繁体   English

如何为wordpress插件提供更新?

[英]How to provide updates for a wordpress plugin?

What i can do is a curl request to my server where i will have the code for every release and check those every time a admin logs in to the system. 我可以做的是向服务器发出curl请求,在那里我将拥有每个版本的代码,并在每次管理员登录到系统时对其进行检查。 But is there a better way or documentation oh how this is done? 但是,还有更好的方法或文档吗?

Is it an open plugin? 它是一个开放的插件吗? That just use the WordPress repo with SVN. 只需将WordPress存储库与SVN一起使用即可。 Else I would recommend to publish your plugin to a (private) GitHub repo and use a tool like GitHub updater https://github.com/afragen/github-updater for your code deployment. 否则,我建议将您的插件发布到(私有)GitHub存储库,并使用Gi​​tHub updater https://github.com/afragen/github-updater之类的工具进行代码部署。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM