Skip to content

User Role Body Class

User Role Body Class Body classes per user role (and guests) for role-based styling on the front end and in admin.

Body classes per user role (and guests) for role-based styling on the front end and in admin.

  • Simple on/off toggle - no settings panel.

Enable it if:

  • You specifically need: Body classes per user role (and guests) for role-based styling on the front end and in admin.
  • You want this Content feature without installing a separate plugin for it.
  1. Go to WP PowerSuite -> Modules.
  2. Open Content or search for “User Role Body Class”.
  3. Toggle User Role Body Class on.

Toggle it off anytime to stop this module from loading.

  • Confirm User Role Body Class is enabled under WP PowerSuite -> Modules -> Content.
  • Use the feature this module controls (the admin UI, front-end behavior, upload, login flow, etc.).
  • ✅ Pass: you see the module-specific behavior described above.
  • ❌ Fail: re-check this module’s settings, then look for another plugin doing the same job.
  • No change after enabling. Confirm the toggle is on, hard-refresh, and review this module’s settings.
  • Conflicts. Temporarily disable other plugins that implement the same feature.
  • Unexpected side effect. Toggle User Role Body Class off to revert, then re-enable with adjusted settings.
What does User Role Body Class do?

Body classes per user role (and guests) for role-based styling on the front end and in admin.

Is User Role Body Class free?

Yes. Enable it under WP PowerSuite -> Modules.

Does User Role Body Class need configuration?

No. It is a simple on/off toggle.

How do I turn User Role Body Class off?

Go to WP PowerSuite -> Modules, find User Role Body Class, and toggle it off.

Developer notes (hooks & filters)

Source: modules/user-role-body-class/module.php. Boot: standard · context: frontend, admin.

Hooks (non-exhaustive): admin_body_class, body_class.