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/wy4tt34rp/ko-navigation-permissions/archive/refs/heads/main.zipPublic WordPress plugin by Ocular Acumen. Source is in ko-navigation-permissions.php; usage and scope are in readme.txt.
Development
Requires PHP 7.4 or newer and WordPress 6.0 or newer. No build step or dependencies. Rules are stored in the ko_navigation_permissions option; new installations start without rules. No client settings are distributed.
Syntax: php -l ko-navigation-permissions.php
Read-only WordPress integration checks: wp eval-file tests/navigation.php CONTENT_ID using an existing page or product ID. Before activation, supply an absolute staged plugin path as a second argument. Tests emulate user roles in memory and override the option only for the test process. They do not create accounts, alter role memberships, save settings, or modify menus/content.
The checks cover all registered roles plus guests, multiple roles, native and custom menu items, private pretty URLs, relative links, nested descendants, unaffected links, empty role lists, rule removal, malformed input, and Settings API double sanitization.
A newly initialized local repository uses branch main. No remote publication is implied by installing this plugin on a site.
Rollback
Deactivate the plugin to restore normal menu visibility. Settings remain available for reactivation. Direct access permissions are never changed by this plugin.