WP Sponsored Content Notice GitLab
WordPress plugin for displaying a sponsored content notice on posts from a target category.
by Amirreza Shayesteh Far · gitlab.com/amirrezasr/wp-sponsored-content-notice · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://gitlab.com/amirrezasr/wp-sponsored-content-notice/-/archive/main/wp-sponsored-content-notice-main.zipFrom the readme
WP Sponsored Content Notice
Displays a sponsored content notice before and after selected WordPress posts.
Description
WP Sponsored Content Notice adds a clear advertising disclosure box to posts inside a target category.
By default, the plugin targets category ID 1951. Each eligible post gets the notice before and after the content. Editors can disable the notice per post from a sidebar metabox.
Features
- Shows a sponsored content notice on selected posts
- Targets posts by category ID
- Adds notice before and after post content
- Per-post disable option
- Responsive frontend design
- Frontend CSS loads only on eligible posts
- No custom database tables
- No external dependencies
- Filterable category ID and notice text
- Single-file plugin
Requirements
- PHP 7.4+
- WordPress 6.0+
Installation
1. Create a folder named wp-sponsored-content-notice.
2. Place wp-sponsored-content-notice.php inside it.
3. Upload the folder to:
4. Activate the plugin from WordPress admin.
Usage / How it Works
By default, posts inside category ID 1951 display the notice.
To disable the notice for a specific post:
1. Edit the post.
2. Find the “Sponsored Content Notice Settings” metabox.
3