CapabilityRegistrar.php
middag-io/wordpress — MIDDAG WordPress adapter.
Tags
Table of Contents
Classes
- CapabilityRegistrar
- Declarative custom-capability registration: describe which capabilities each role receives once, then apply on plugin activation and remove on deactivation/uninstall. Replaces the ad-hoc `add_cap()` loops every plugin reinvents.