Remove top admin toolbar on the frontend

The default WordPress behavior is to show the top admin toolbar on the frontend side of a website. If this is not the desired behavior, this policy removes toolbar for everybody except users with the Administrator role.

{
    "Version": "1.0.0",
    "Dependency": {
        "wordpress": ">=4.0.0",
        "advanced-access-manager": ">=6.0.0"
    },
    "Statement": [
        {
            "Effect": "deny",
            "Resource": [
                "Capability:aam_show_toolbar"
            ]
        }
    ]
}
POLICY ID
Copy this unique number and use it to install the policy on your website. To learn more how it works, follow this link.
DEPENDENCIES List of required plugins for this policy to work properly.
WordPress >=4.0.0
Advanced Access Manager >=6.0.0
ASSIGNEES The type of audience the policy is automatically applied to as well as excluded. To learn more how it works, follow this link
  • All Users, Roles & Visitors
  • Exclude "Administrator" role