jcore / oikeus
JCORE Module Template repository
v1.0.1
2025-11-14 09:21 UTC
Requires
- jcore/ydin: ^3||^4
Requires (Dev)
This package is auto-updated.
Last update: 2026-03-17 15:46:48 UTC
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