admin管理员组文章数量:1124174
I'm trying to install an additional plugin, and all I have is the slug name of the plugin under api.wordpress. I've figured out that one could get the zip file's path (download_link) when going to .0/plugin-slug
What would be the rest? I wouldn't want to do the entire unzipping if there's a built-in function in WP that does that...?
I'm trying to install an additional plugin, and all I have is the slug name of the plugin under api.wordpress.org. I've figured out that one could get the zip file's path (download_link) when going to http://api.wordpress.org/plugins/info/1.0/plugin-slug
What would be the rest? I wouldn't want to do the entire unzipping if there's a built-in function in WP that does that...?
Share Improve this question edited Mar 13, 2024 at 15:38 Jesse Nickles 7357 silver badges19 bronze badges asked Mar 2, 2015 at 20:15 AsafAsaf 3312 gold badges4 silver badges10 bronze badges 6- Can I ask why you're doing this? – Tom J Nowell ♦ Commented Mar 2, 2015 at 20:26
- I have some related plugins that can work with my plugin, and I'd like to install them (on user confirmation only of course). – Asaf Commented Mar 2, 2015 at 20:32
- 4 Have you tried github.com/thomasgriffin/TGM-Plugin-Activation ? – Tom J Nowell ♦ Commented Mar 2, 2015 at 20:33
- TGM-Plugin-Activation is the right way to go - I've used it before for this exact purpose. – Dalton Rooney Commented Mar 3, 2015 at 19:41
- I ended up writing my own plugin as a result - WP Plugin Packer – Asaf Commented Nov 7, 2022 at 10:54
2 Answers
Reset to default 3This solution should do the job for you.
http://tgmpluginactivation.com/
The solution is meant for theme developers to package to download, automatically install and activate multiple plugins that are either packaged with a theme, downloaded from the WordPress Plugin Repository or downloaded elsewhere on the internet (perhaps a private repository.
The code of the solution can be used to accomplish what you are trying to achieve. The code is also available on GitHub at:
https://github.com/TGMPA/TGM-Plugin-Activation
Best of luck.
In addition with Pali Madra's answer, this is a list of services and open sources that might be useful:
- WP Package Editor
WP2E is a service allowing developers to create and manage installation packages to deliver and maintain sets of interdependent themes and plugins.
- TGM Plugin Activation
TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).
- WPFavs
It is a Free WordPress plugin manager and bulk installation tool
- WP Plugin Dependencies
This meta-plugin allows regular plugins to specify other plugins that they depend upon.
- WP Dependency Installer
A lightweight class to add to WordPress plugins/themes to automatically install plugin dependencies.
本文标签: Install an external plugin from within the current plugin
版权声明:本文标题:Install an external plugin from within the current plugin? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736616329a1945477.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论