Adds a shortcode to restrict content from anonymous users.
This plugin helps you to hide certain parts of your content like a paragraph or an image etc. to logged-out users or users of any other role with just a simple shortcode.
Customize the shortcode in order to display a special note to your users, apply custom CSS classes for your own design or hide the restricted parts completely.
Features:
[member][/member]
is not visible to anonymous users/wp-content/plugins/restrict-anonymous-access
directory, or install the plugin through the WordPress plugins screen directly.[member][/member]
in any post, page or custom post type in order to hide content from anonymous users. Important: Please use “Classic” block element if you are using Gutenberg.showinfo="0"
to hide the info message, infotext="Your custom info for anons."
and class="my-custom-css-class"
for adding CSS class to the info box.role="[subscriber|contributor|author|editor|admin|your-custom-role]"
, e.g. role="editor"
to hide content from users below editor capabilities.