jcore / oikeus
JCORE Module Template repository
v1.0.0
2025-06-12 13:43 UTC
Requires
- jcore/ydin: ^3.5
Requires (Dev)
This package is auto-updated.
Last update: 2025-06-12 13:44:19 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_admin
role based on Editor, with extra capabilities:- Can create, promote, and list users.
- Can manage navigation menus.
- Restricted Access:
site_admin
users cannot access the Site Editor or Themes screens.- The Themes and Site Editor menu items are hidden for
site_admin
users. site_admin
users cannot assign the Administrator role to others.
- Menu and Capability Management:
- Ensures
site_admin
can 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 theinit
hook. -
Initialization:
Call the bootstrapper early in your plugin or theme:Jcore\Oikeus\Bootstrap::init();st.org that tracks this repository