jcore/oikeus
最新稳定版本:v1.0.1
Composer 安装命令:
composer require jcore/oikeus
包简介
JCORE Module Template repository
README 文档
README
This module provides a custom site_admin role for WordPress, based on the Editor role, with additional capabilities and restrictions. It is designed to allow advanced site management without full administrator privileges.
Features
- Custom Role: Adds a
site_adminrole based on Editor, with extra capabilities:- Can create, promote, and list users.
- Can manage navigation menus.
- Restricted Access:
site_adminusers cannot access the Site Editor or Themes screens.- The Themes and Site Editor menu items are hidden for
site_adminusers. site_adminusers cannot assign the Administrator role to others.
- Menu and Capability Management:
- Ensures
site_admincan access Appearance > Menus. - Prevents access to theme and plugin editors.
- Ensures
Usage
-
Installation:
Require this module in your project and ensure it is loaded before theinithook. -
Initialization:
Call the bootstrapper early in your plugin or theme:Jcore\Oikeus\Bootstrap::init();st.org that tracks this repository
统计信息
- 总下载量: 889
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2025-06-09