Skip to content

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.

License

Notifications You must be signed in to change notification settings

VolkanSah/Warning-function-for-WordPress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Content 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

  1. Download or clone this repository.
  2. Upload the core.php to the /wp-content/plugins/yourpluginame directory of your WordPress installation.
  3. Activate the plugin through the 'Plugins' menu in WordPress.
  4. 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:

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages