Directory / plugin

Karma Protected Content

v1.0.1 · by Ermanno Devitofrancesco

Protect parts of your post content with a simple shortcode, visible only to registered users.

About this plugin

This plugin is a minimal, lightweight solution that lets you protect specific parts of your WordPress post content, making them visible only to registered users.

Visitors who are not logged in will see a customizable colored banner with a button that links to the registration page.

Main features:

  • Simple shortcode: [contenuto_protetto]
  • Customizable banner for non-registered users
  • Default messages configurable in settings
  • Custom link for the registration page
  • Meta box in the editor sidebar with usage instructions
  • Responsive, modern design
  • Lightweight and performant

How it works:

  1. Wrap the content you want to protect with the [contenuto_protetto] shortcode
  2. Registered users will see the content as usual
  3. Non-registered visitors will see a banner with a registration button

Customization:

You can customize:
* Banner title
* Banner text
* Banner background color
* Button text
* Registration page link

All settings are available under Settings > Protected Content.

Usage examples:

Basic example:
[contenuto_protetto]
This text is for registered users only.
[/contenuto_protetto]

With custom options:
[contenuto_protetto titolo="Premium Content" testo="Register to read" colore="#ff0000"]
Protected content here
[/contenuto_protetto]

Plugin tags