Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
Correct composer licence
  • Loading branch information
grappler committed May 27, 2021
1 parent e2f9bb9 commit f0733ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ WordPress mu-plugin for user editing in combination with the [Members](https://w

## Installation

- Define the git repository
- Require `koodimonni/composer-dropin-installer` and `wearerequired/user-roles-adjustments`
- Define the drop in path
1. Define the git repository in `composer.json`
2. Install `koodimonni/composer-dropin-installer` and `wearerequired/user-roles-adjustments`
`composer require koodimonni/composer-dropin-installer wearerequired/user-roles-adjustments`
3. Define the dropin path for `wordpress-muplugin`
`composer config --json --merge extra.dropin-paths '{ "wordpress/content/mu-plugins/": [ "type:wordpress-muplugin" ] }'`

Example of a `composer.json` for a site:

Expand All @@ -15,13 +17,13 @@ Example of a `composer.json` for a site:
"name": "wearerequired/something",
"repositories": [
{
"type": "git",
"type": "vcs",
"url": "git@github.com:wearerequired/user-roles-adjustments.git"
}
],
"require": {
"koodimonni/composer-dropin-installer": "dev-master",
"wearerequired/user-roles-adjustments": "dev-master"
"koodimonni/composer-dropin-installer": "^1.0",
"wearerequired/user-roles-adjustments": "^0.1"
},
"extra": {
"dropin-paths": {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wearerequired/user-roles-adjustments",
"description": "Custom functionality for user editing in combination with the Members plugin. Retains user levels and limits user editing capabilities.",
"type": "wordpress-muplugin",
"license": "GPL-2.0+",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "required gmbh",
Expand Down

0 comments on commit f0733ae

Please sign in to comment.