Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/derweili/user-departments/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Restrict User Capabilities with Departments
Description
This Plugin Adds "Departments" wich can be assigned to posts and users.
Posts with assigned departments can only be edited/published/deltes with users of the same department(s).
The default WordPress capabilities and user roles are still working.
Installation
This section describes how to install the plugin and get it working.
e.g.
- Upload the Plugin to the
/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress