Title: LH Add Roles to Body Class
Author: shawfactor
Published: <strong>2018年5月24日</strong>
Last modified: 2022年7月29日

---

プラグインを検索

![](https://ps.w.org/lh-add-roles-to-body-class/assets/banner-772x250.jpg?rev=1880441)

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/lh-add-roles-to-body-class/assets/icon-256x256.png?rev=2763235)

# LH Add Roles to Body Class

 作者: [shawfactor](https://profiles.wordpress.org/shawfactor/)

[ダウンロード](https://downloads.wordpress.org/plugin/lh-add-roles-to-body-class.zip)

 * [詳細](https://ja.wordpress.org/plugins/lh-add-roles-to-body-class/#description)
 * [レビュー](https://ja.wordpress.org/plugins/lh-add-roles-to-body-class/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/lh-add-roles-to-body-class/#installation)
 * [開発](https://ja.wordpress.org/plugins/lh-add-roles-to-body-class/#developers)

 [サポート](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/)

## 説明

Ever wanted to style your content differently depending on the role of the logged
in user viewing your content?

Well now you can, simply activate the plugin and you are right to go.

**Like this plugin? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/lh-add-roles-to-body-class/).**

**Love this plugin or want to help the LocalHero Project? Please consider [making a donation](https://lhero.org/portfolio/lh-add-roles-to-body-class/).**

## インストール

 1. Upload the entire `lh-add-roles-to-body-class` folder to the `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. That is it

## FAQ

### Why would I want this?

So you can add CSS selectors based on those classes to override and modify your 
site design.

For example a red background for an administrator

.role-administrator { background-color: red; }

### What if I need a feature that is not in the plugin?

Please contact me for custom work and enhancements here: [https://shawfactor.com/contact/](https://shawfactor.com/contact/)

## 評価

![](https://secure.gravatar.com/avatar/082b19ca82fa33fc7f9ba24b543a0291873f86395d06eecd33e0e84d0bb88085?
s=60&d=retro&r=g)

### 󠀁[Amazing](https://wordpress.org/support/topic/amazing-2961/)󠁿

 [adriangzz98](https://profiles.wordpress.org/adriangzz98/) 2021年1月29日 1 reply

Great plugin, easy to use and a most have for all who needs different style depending
on user roles

 [ 1件のレビューをすべて表示 ](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/reviews/)

## 貢献者と開発者

LH Add Roles to Body Class はオープンソースソフトウェアです。以下の人々がこのプラグ
インに貢献しています。

貢献者

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

[“LH Add Roles to Body Class” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/lh-add-roles-to-body-class)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/lh-add-roles-to-body-class/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/lh-add-roles-to-body-class/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/lh-add-roles-to-body-class/)
を [RSS](https://plugins.trac.wordpress.org/log/lh-add-roles-to-body-class/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

**1.00 May 20, 2018**
 Initial release

**1.01 June 12, 2019**
 Bettter code architecture

## メタ

 *  バージョン **1.01**
 *  最終更新日 **4年前**
 *  有効インストール数 **30+**
 *  WordPress バージョン ** 5.0またはそれ以降 **
 *  検証済み最新バージョン: **6.0.18**
 *  言語
 * [English (US)](https://wordpress.org/plugins/lh-add-roles-to-body-class/)
 * タグ
 * [body](https://ja.wordpress.org/plugins/tags/body/)[html](https://ja.wordpress.org/plugins/tags/html/)
   [role](https://ja.wordpress.org/plugins/tags/role/)[tag](https://ja.wordpress.org/plugins/tags/tag/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/lh-add-roles-to-body-class/advanced/)

## 評価

 5つ星中5つ星

 *  [  1 5-星レビュー     ](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/reviews/)

## 貢献者

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/lh-add-roles-to-body-class/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://lhero.org/portfolio/lh-add-roles-to-body-class/)