API / Minn\Auth / RegisteredCaps

RegisteredCaps final class

Minn\Auth\RegisteredCaps · public/minn/src/Minn/Auth/RegisteredCaps.php · 24 lines

The capability names a plugin's post type or taxonomy registered, read from the runtime's registry once plugins are loaded (probe rest-plugin-caps): a type's cap object (create_posts, edit_posts, publish_posts...) and whether it maps meta capabilities, a taxonomy's term capabilities. A built-in type's too (patterns, menu items, templates), all but posts and pages, whose families the engine knows; null for those and when no runtime is up.

Public

staticofType(string $type): ?WP_Post_Type#

A post type's registered object (any but post and page), or null.

staticofTaxonomy(string $taxonomy): ?WP_Taxonomy#

A plugin's taxonomy, or null.