WordPress mu-plugin for user editing in combination with the Members plugin. Retains user levels and limits user editing capabilities.
- Define the dropin path for
wordpress-muplugin
composer config --json --merge extra.dropin-paths '{ "wordpress/content/mu-plugins/": [ "type:wordpress-muplugin" ] }'
- Install
koodimonni/composer-dropin-installer
andwearerequired/user-roles-adjustments
composer require koodimonni/composer-dropin-installer wearerequired/user-roles-adjustments
Example of a composer.json
for a site:
{
"name": "wearerequired/something",
"require": {
"koodimonni/composer-dropin-installer": "^1.0",
"wearerequired/user-roles-adjustments": "^0.2"
},
"extra": {
"dropin-paths": {
"wordpress/content/mu-plugins/": [
"type:wordpress-muplugin"
]
}
}
}