How Can We Help?
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
- Download the latest archive.
- Go to the Plugins -> Add New screen and click the Upload tab.
- Upload the zipped archive directly.
- Go to the Plugins screen and click Activate.
Manual
- Download the latest archive and unzip.
- Copy the
git-updater
folder to your/wp-content/plugins/
directory. - 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)
- Choose a method from above for installation.
- DO NOT activate!
- Symlink
wp-content/plugins/git-updater/mu/gu-loader.php
inwp-content/mu-plugins
. - 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.