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...?

  • 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. 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 2


This solution should do the job for you.


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:


Best of luck.


In addition with Pali Madra's answer, this is a list of services and open sources that might be useful:

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 is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

It is a Free WordPress plugin manager and bulk installation tool

This meta-plugin allows regular plugins to specify other plugins that they depend upon.

A lightweight class to add to WordPress plugins/themes to automatically install plugin dependencies.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.