Content Warning Plugin
It adds a content warning to posts that are in specific categories. The warning informs readers that the content may not be suitable for children or teenagers under 16 years old, and it asks them to confirm if they want to continue reading.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/volkansah/warning-function-for-wordpress/archive/refs/heads/main.zipContent Warning Plugin for WordPress
It adds a content warning to posts that are in specific categories. The warning informs readers with your Text and it asks them to confirm if they want to continue reading.
How to use
- Download or clone this repository.
- Upload the
core.phpto the/wp-content/plugins/yourpluginamedirectory of your WordPress installation. - Activate the plugin through the 'Plugins' menu in WordPress.
- To add the warning, simply add your post to the 'example-category' category.
Customize
You can change the 'example-category' in the code to the category you want to show the warning for. You can also modify the warning message to suit your needs.
Credits:
Releases
1 release.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.