Skip to content
Select theme
Get Started

Username Body Class

Summarize with AI

Username Body Class Body classes for logged-in username and user ID-useful for theme tweaks and personalization. Privacy note: the username and ID appear in the page HTML source for that logged-in user.

Body classes for logged-in username and user ID-useful for theme tweaks and personalization. Privacy note: the username and ID appear in the page HTML source for that logged-in user.

  • Simple on/off toggle - no settings panel.

Enable it if:

  • You specifically need: Body classes for logged-in username and user ID-useful for theme tweaks and personalization. Privacy note: the username and ID appear in the page HTML source for that logged-in user.
  • You want this Content feature without installing a separate plugin for it.
  1. Go to WP PowerSuite -> Modules.
  2. Open Content or search for “Username Body Class”.
  3. Toggle Username Body Class on.

Toggle it off anytime to stop this module from loading.

  • Confirm Username 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 Username Body Class off to revert, then re-enable with adjusted settings.

Prefer the command line? You can turn this module on or off with WP-CLI instead of the dashboard:

Terminal window
# Turn the module on
wp powersuite module enable username-body-class
# Turn the module off
wp powersuite module disable username-body-class
# Check whether it is on, its category, and where its settings live
wp powersuite module get username-body-class

Managing more than one site? Add --url=https://example.com to point a command at one site. If this is a Pro module, install WP PowerSuite Pro and activate your license first. New to WP-CLI? See the full command guide.

What does Username Body Class do?

Body classes for logged-in username and user ID-useful for theme tweaks and personalization. Privacy note: the username and ID appear in the page HTML source for that logged-in user.

Is Username Body Class free?

Yes. Enable it under WP PowerSuite -> Modules.

Does Username Body Class need configuration?

No. It is a simple on/off toggle.

How do I turn Username Body Class off?

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

Developer notes (hooks & filters)

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

Hooks (non-exhaustive): admin_body_class, body_class.