WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#36721 closed feature request (duplicate)

Add secondary location for plugins and/or themes.

Reported by: scotthack Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

I run my sites on my own dedicated box. I have about 60 WordPress installs running on the site and about 2 years ago I slowly started migrating all of the sites into a multi-tenant install. It has been working really, really well, and has made updating the sites a lot easier, etc. I've also been doing the same thing by symlinking plugin directories inside the wp-content/plugins directory. However, ideally, I'd like to be able to add a line to the wp-config file with a secondary location of plugins that I could universally install on my sites. Then I wouldn't need to create the symlinked folders on a site by site basis. It would also add the ability to easily add a new plugin to all 60 sites without much fuss. I don't want to move the location of my plugins folder. I want to add a secondary location, so I can have plugins installed still in wp-content/plugins but also pull from another area. An internal library of sorts.

Change History (1)

#1 @ocean90
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version trunk deleted

Hello @scotthack, you can use register_theme_directory() for themes.

For plugins see #19721.

Note: See TracTickets for help on using tickets.