How Can We Help?

< All Topics
Print

Installation

Installation

Composer

Configure your project’s composer.json to add the following data in the proper places. If your composer.json file is missing some of these properties, you can add them. This will add the master branch of Git Updater to the wp-content/plugins directory so that it can be used properly. If your composer.json file is at the root of your WordPress installation the below will work. If you are adding this to your plugin or theme you will need to adjust the installer-paths to ../../../wp-content/plugins/{$name}/ and/or ../../../wp-content/themes/{$name}/

{
    "require": {
        "afragen/git-updater": "^9 || ^10",
        "composer/installers": "^1"
    },
    "minimum-stability": "dev",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/afragen/git-updater"
        }
    ],
    "extra": {
        "installer-paths": {
            "wp-content/plugins/{$name}/": [
                "type:wordpress-plugin"
            ],
            "wp-content/themes/{$name}/": [
                "type:wordpress-theme"
            ]
        }
    }
}

wp command-line utility

WP-CLI is the official command-line interface for WordPress. You can install git-updater with it like this:

wp plugin install --activate https://github.com/afragen/git-updater/archive/master.zip

Upload

  1. Download the latest archive.
  2. Go to the Plugins -> Add New screen and click the Upload tab.
  3. Upload the zipped archive directly.
  4. Go to the Plugins screen and click Activate.

Manual

  1. Download the latest archive and unzip.
  2. Copy the git-updater folder to your /wp-content/plugins/ directory.
  3. Go to the Plugins screen and click Activate.

Check out the Codex for more information about installing plugins manually

Install Git Updater as a Must Use Plugin (optional)

  1. Choose a method from above for installation.
  2. DO NOT activate!
  3. Symlink wp-content/plugins/git-updater/mu/gu-loader.php in wp-content/mu-plugins.
  4. You should use full filepaths when creating your symlink.

in Linux

cd <WordPress root>
ln -sv wp-content/plugins/git-updater/mu/gu-loader.php wp-content/mu-plugins

in Windows (Vista, 7, 8)

cd /D <WordPress root>
mklink wp-content\mu-plugins\gu-loader.php wp-content\plugins\git-updater\mu\gu-loader.php

This way you get automatic updates and cannot deactivate the plugin.

Previous How to ignore repositories in Git Updater
Next Language Packs
Table of Contents