Skip to main content

aam_edit_policies

Vasyl MartyniukLess 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_capabilitiesopen in new window 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.