Private Content provides a shortcode to display a small portion of a post content only to users of a specific role. For example, you can show the hidden text to Editors or to Authors or to any other WordPress role, even a custom role.
Private Content is not intended to be used as a membership plugin management, but instead it should be used to show small parts of a post only to certain users or roles.
I would like to say Thank You to all the people who helped me in making this plugin better and translated it into their respective languages.
This plugin does not collect any user data.
Many thanks to:
This section describes how to install the plugin and get it working.
- Upload the
private-contentdirectory to the
- Activate the plugin through the Plugins menu in WordPress
- Now the shortcode is available and ready to use.
This plugin is not intended to be used in such way, but only in order to display a portion of a post to certain readers. Also, the hidden text must remain hidden, without the presence of an alternate text that could reveal the presence of the hidden text. Anyway, as of version 2.2, the plugin can display an alternate text, if it’s necessary: you can use the
altoption to do that. You can find more information in the Wiki page.
Also, this plugin was created only to show a small piece of text (i.e. a couple of lines) as a note to the post for particular readers.
If you need to show the entire post only to certain readers (i.e. readers who pay to read a post), you can use a plugin like Members.
Yes, you have to edit the CSS file of your current theme.
The shortcode generates a
<p>HTML tag with some classes, for example:
privateto stylize all private contents
[role]-contentto stylize the content for that specific [role].
[role]-onlyto stylize the content for that specific [role] only.
See the official Wiki for more information.
Does this plugin work with custom roles?
Yes, custom roles are fully supported starting from version 6.0. You can find more information in the Wiki page.
Colaboradores y desarrolladores
«Contenido Privado» es un software de código abierto. Las siguientes personas han colaborado con este plugin.Colaboradores
Registro de cambios
roleoption (thanks to @agenziae20).
The full changelog is documented in the changelog file released along with the plugin package and is hosted also on GitHub.