Installing plugins from an intranet bitbucket via WP Admin

I know this is a crazy question so here goes. Please don’t ask why we are doing things this way I am just trying to pick your much smarter brains for help while also learning. Thank you!

Here’s what I am attempting to try with regard to this custom plugin. We want to create a marketplace to which users can install plugins from a directory that is self hosted via our intranet bitbucket repo.

The users cannot access the outside internet but only our intranet. Uploading their own plugins is also not an option as we have set this configuration in our wp-config.php: define( ‘DISALLOW_FILE_MODS’, true );. So what can I do to make this all possible?

I was hoping for something somewhat simple as I have tried to modify the install URL: http://localhost/wordpress/wp-admin/update.php?action=install-plugin&plugin= however this will only yield “The link you followed has expired.” So I’m pretty sure I’m barking up the wrong tree there.

Recap:

No internet access.
Our WordPress sites are hosted internally on our intranet.
Uploading and installing plugins is not a possibility.
We want our own marketplace to which users can install plugins from our self hosted repos.

I need a way that when a user clicks an install button for a particular plugin that is approved for use on our intranet, that our marketplace plugin would then mimic what the default WordPress plugin manager does by downloading from our repo and installing the plugin.

Read more here:: Installing plugins from an intranet bitbucket via WP Admin

Leave a Reply

Your email address will not be published. Required fields are marked *