Instructions for how to install a WordPress plugin that is stored in a Gist (example).
There are three ways to do it:
Note: These instructions need to be refreshed now that the Gist updater functionality is in a separate plugin.
-
Install and activate the GitHub Updater and GitHub Updater - Gist plugins.
-
Navigate to Settings > GitHub Updater.
-
Click on the Install Plugin tab.
-
Supply the URL of the Gist as the Plugin URI and select “Gist” as the Remote Repository Host, and click Install Plugin.
-
From now on any updates to the Gist will be listed among the updated plugins on the WordPress Updates screen.
-
Bonus: Install and activate the GitHub Updater plugin to get updates.
-
Click the Embed dropdown and select Clone via SSH (or Clone via HTTPS):
-
Open the
plugins
directory on the terminal command line for your WordPress install. -
Do
git clone {url} {slug}
where{url}
is the Gist SSH URL which you copied to the clipboard and{slug}
is the name you want to use. You can leave out{slug}
if you want, but then the slug of the plugin will be something like621137b5a5ae1caaaee48c63f61ce7b7
instead ofmy-plugin-doing-something
. -
Then activate the plugin either via the WordPress admin or via WP-CLI (e.g.
wp plugin activate {slug}
).
I think installing via ZIP is much more convenient (the main thing is that you have a clutch from the file) than other methods. I must pay tribute to GitHub; at one time, I only used such an installation because I was too lazy to look for something else. Now I choose only ZIP. I am currently using this service https://prosvit.design/wordpress-services/plugin-development/ for plugins, and ZIP suits me best. I haven't tried installing via Git, but I'm unlikely to try. I don't want to offend anyone, and if it's better and more convenient for you to use other installers, I have nothing against it. In any case, the main thing is that the plugins work, and how to install them is a matter of taste. Good luck to everyone!