
內容簡介
總結:Dead Dove 外掛讓管理員可以根據文章標籤應用內容警告,使用者必須點擊同意後才能查看經標記的內容,並模糊顯示帶有指定標籤的內容。管理員可以定義觸發警告的標籤,提供自訂的警告文字。
1. Dead Dove 外掛的主要功能:
- 根據指定標籤模糊顯示內容,需要使用者閱讀聲明並同意才能查看。
- 管理員選擇需要警告的標籤,警告文字來自標籤描述。
- 使用者能夠自訂基於標籤的內容警告設置以覆蓋管理員的預設設置。
- 支援在文章或區塊層級應用警告,或使用包含標籤參數的簡碼。
- 如果應用多個警告標籤,將顯示所有相關警告。
2. Dead Dove 外掛的使用方式:
管理員設置:
- 前往「設定 > 內容警告」。
- 選擇需要內容警告的標籤。
- 為每個標籤添加描述以提供警告文字。
使用者設置:
- 使用者可以進入個人檔案調整其警告設置。
- 可以停用管理員設置的特定標籤的警告,或添加自己的標籤觸發警告。
文章標籤使用:
- 若要對整篇文章應用內容警告,需為該文章標記標籤,該標籤需需要內容警告。
區塊使用:
- 在區塊編輯器中,添加「內容警告」區塊。
- 在區塊設置中選擇警告標籤。
- 添加內容,將在使用者同意前模糊顯示。
簡碼使用:
- 使用 [content_warning] 簡碼在個別文章或頁面應用警告。要輸入標籤的標題或標籤,並用逗號分隔。
- 範例 1:單個標籤
[content_warning tags="敏感"]
本節討論敏感資料。
[/content_warning]
- 範例 2:多個標籤
[content_warning tags="圖像,冒犯"]
本節包含圖像語言和冒犯主題。
[/content_warning]
外掛標籤
開發者團隊
原文外掛簡介
The Dead Dove plugin lets administrators and users apply content warnings to their content. Administrators define the available content warnings in a custom taxonomy of terms, and specify which of them trigger warnings by default. Users can overide these defaults in their user settings. Tags may be applied at the post level, block level, or even within a block using a shortcode. From version 2.0, they can also be applied when posting to BuddyBoss activity feeds and forums, even by users who lack access to the WordPress dashboard.
Content that has been tagged with a term that triggers a content warning for the user viewing it will be blurred from view. To view the content the user must read and accept a disclaimer that has been defined by the administrator in the description of the taxonomy term.
Features
Blur content based on assigned terms and display warning text before viewing.
Administrators select which terms require warnings, with the warning text pulled from term descriptions.
Users can override admin settings by choosing their own tag warning preferences.
Warning can be applied at the post or block level, using a shortcode with terms as parameters, or when posting to a Buddyboss activity feed or forum.
Multiple term descriptions are shown if more than one warning term is applied.
Usage
Admin Settings
Go to Settings > Content Warning.
Select the terms that require a content warning.
Add a description to each term to provide the warning text.
User Settings
Users who have access to the WordPress Dashboard can go to Your Profile to adjust their warning settings.
BuddyBoss users can adjust their warning settings by going to Account Settings, Content Warning Settings.
Users can disable warnings for certain terms set by the admin or enable warnings for terms that were not set by the admin.
User selections are stored in the deaddove_user_warning_terms user meta key.
Post term usage
To apply a content warning to an entire post, apply a term that requires a content warning to the post. The content warning taxonomy will appear in the post editor screen, alongside tags, and are used in the same way.
Block Usage
In the block editor, add the Content Warning block.
Select warning terms in the block settings.
Add your content inside the Content Warning block, which will be blurred until the user agrees to view it.
Shortcode Usage
Use the [content_warning] shortcode to apply warnings within a block. The slug of the term or terms should be entered into the shortcode separated by commas.
Example 1: Single term
[content_warning tags="sensitive"]
This section discusses sensitive material.
[/content_warning]
Example 2: Multiple terms
[content_warning tags="graphic,offensive"]
This section contains graphic language and offensive themes.
[/content_warning]
BuddyBoss Usage
When adding content to the Activity Feed or Forum post, the available content warnings are shown in a drop-down in the editing box.
Roadmap
Geolocation-based Warnings: Modify content visibility based on the viewer’s location.
Custom Styling Options: Provide options to style blurred content and buttons using CSS.
Apply Shortcode from Editing Toolbar: Simpler application of content warnings to text selections.
License
This plugin is licensed under the GPLv2 or later. See the license for more details.
