Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to install a WordPress plugin from a Gist

Instructions for how to install a WordPress plugin that is stored in a Gist (example).

There are three ways to do it:

  1. Installing via GitHub Updater Plugin
  2. Installing via ZIP
  3. Installing via Git

Installing via GitHub Updater Plugin

Note: These instructions need to be refreshed now that the Gist updater functionality is in a separate plugin.

  1. Install and activate the GitHub Updater and GitHub Updater - Gist plugins.

  2. Navigate to Settings > GitHub Updater.

  3. Click on the Install Plugin tab.

  4. Supply the URL of the Gist as the Plugin URI and select “Gist” as the Remote Repository Host, and click Install Plugin. github-updater

  5. Click Activate Plugin. github-updater-activate

  6. From now on any updates to the Gist will be listed among the updated plugins on the WordPress Updates screen.

Installing via ZIP

  1. Click the Download ZIP button:

  2. In the WordPress admin, go to Plugins > Add New:

  3. Click Upload Plugin:

  4. Choose the ZIP file you downloaded and click Install Now:

  5. Click Activate Plugin:

  6. Bonus: Install and activate the GitHub Updater plugin to get updates.

Installing via Git

  1. Click the Embed dropdown and select Clone via SSH (or Clone via HTTPS):

  2. Click the button to copy to the clipboard:

  3. Open the plugins directory on the terminal command line for your WordPress install.

  4. 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 like 621137b5a5ae1caaaee48c63f61ce7b7 instead of my-plugin-doing-something.

  5. Then activate the plugin either via the WordPress admin or via WP-CLI (e.g. wp plugin activate {slug}).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment