Skip to content

Instantly share code, notes, and snippets.

Embed
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

  1. Install and activate the GitHub Updater plugin.

  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:
    image

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

  3. Click Upload Plugin:
    image

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

  5. Click Activate Plugin:
    image

  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):
    image

  2. Click the button to copy to the clipboard:
    image

  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