Castlegate IT WP Site Manager is a WordPress plugin that adds a site manager user role with the same capabilities as an editor, plus the ability to edit navigation menus and make changes to non-administrator users. The role also allows a user to edit the privacy policy page without giving full access to the site options.
Before version 1.4.0, this plugin used the user_has_cap filter to grant additional capabilities to the Site Manager role as required. This stopped working with Yoast version 21.9.0 and so Site Manager now adds its capabilities directly to the user role on plugin activation. Therefore, if you upgrade to Site Manager 1.4.0, you must reactivate the plugin to reset the user capabilities.
cgit_site_manager_role_namefilters the role name. Default valuecgit_site_manager.cgit_site_manager_role_labelfilters the role label. Default valueSite Manager.cgit_site_manager_base_rolefilters the user role used as a basis for the site manager user role. Default valueeditor.cgit_site_manager_capabilitiesfilters the array of capabilities assigned to the site manager user role.cgit_site_manager_blocked_screensfilters the list of screen names that are available to administrators but not site managers.cgit_site_manager_blocked_pagesfilters the list of menu pages in the WordPress dashboard that are visible to administrators but not site managers.cgit_site_manager_error_titlefilters the error page title. Default valueAccess denied.cgit_site_manager_error_messagefilters the error message displayed when a site manager tries to visit a page that is only available to administrators.
Note that user capabilities are stored in the database. Some of these filters may not take effect until the plugin is restarted.
If installed and active, site manager users will be granted access to the features added by the following plugins:
- Gravity Forms
- WooCommerce
- Yoast (Free and Premium)
The user and theme capabilities can be disabled by setting constants in wp-config.php.
define('SITE_MANAGER_EDIT_USERS', false);
define('SITE_MANAGER_EDIT_THEME', false);
define('SITE_MANAGER_EDIT_PRIVACY_POLICY', false);
define('SITE_MANAGER_EDIT_GRAVITY_FORMS', false);
define('SITE_MANAGER_EDIT_WOOCOMMERCE', false);
define('SITE_MANAGER_EDIT_YOAST', false);These must be set before the plugin is activated. To make changes to the role after the plugin has been activated, reactivate the plugin.
Released under the MIT License. See LICENSE for details.