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.
- Download or clone this repository.
- Upload the
core.php
to the/wp-content/plugins/yourpluginame
directory 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.
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: