“Unlocking Hidden Potential: How WordPress Can Transform Your Data Entry into a Powerful Central API!”
Here is an example of how a policy named Employees CPT – Full Control
and assigned only to Administrator
users can look like:
{
"Version": "1.0.0",
"Dependency": {
"wordpress": ">=6.6.2",
"advanced-access-manager": ">=6.9.42"
},
"Statement": [
{
"Effect": "allow",
"Resource": [
"Capability:edit_employees",
"Capability:edit_others_employees",
"Capability:edit_private_employees",
"Capability:edit_published_employees",
"Capability:read_private_employees",
"Capability:publish_employees",
"Capability:delete_employees",
"Capability:delete_private_employees",
"Capability:delete_published_employees",
"Capability:delete_others_employees"
]
}
]
}
Here is an example of what the admin interface can look like for a dummy operator
user that has the Data Entry Operator
user roles (cloned from the Subscriber
role) with two AAM Access Policies attached – one for each custom CPT:
Post Comment