aam_edit_policies
Less than 1 minute
Under the hood, each AAM access policy is stored as a custom post type aam_policy
, and permissions to perform actions against this post type are defined during the custom post type registration.
FYI!
For more information about capabilities for a post type, refer to the get_post_type_capabilities official WordPress developer page.
The aam_edit_policies
capability permits users to edit access policies they created or own. It is a custom capability, and if it is not explicitly created, AAM checks if a user has the administrator
capability instead.