Documentation

CapabilityRegistrar.php

middag-io/wordpress — MIDDAG WordPress adapter.

Tags
author

Michael Meneses [email protected]

copyright

2026 MIDDAG (https://middag.io)

license

Apache-2.0

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.
On this page

Search results