Found Image http://plugins.svn.wordpress.org/restrict-anonymous-access/assets/icon-256x256.png Restrict Anonymous Access | Plugin Review Network Skip to Content

Plugin Review Network

Plugin Review Network

an eye on the best wordpress plugins
Show Sidebar Hide Sidebar
[+] Sidebar [-] Sidebar
Plugin:
Rated:
100%
5 Stars (2 votes)

WP.Org

ReadMe

Support
  • Author:
    Christian Leuenberg, L.net Web Solutions
Version: 1.2
Last Updated:2041 days ago
Downloads:1141
Tags:
    access-control, capabilities, Restrict content, User Access
Download Plugin Package

Restrict Anonymous Access

Released on June 9, 2017.
Download Plugin Package

Version: 1.2

Adds a shortcode to restrict content from anonymous users.

  • Description
  • Changelog
  • Installation
  • Screenshots


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:

  • text within shortcode [member][/member] is not visible to anonymous users
  • hide content based on user roles (subscriber, contributor, author, editor, admin)
  • restricted text can be replaced with info text box
  • info text can be customized
  • comes with a handy TinyMCE button for quick access

https://youtu.be/n3M4C4aktuU

1.2.1

  • Fixed vulnerability to Cross Site Scripting (XSS).
  • Tested with WordPress 5.7.1.

1.2

  • Added compatibility to custom user roles.
  • Added HTML support for infotext parameter.

1.1

  • Added optional user role based content restriction.

1.0.3

  • Tested with WordPress 4.8.
  • Fixed: Text output with paragraph tag (wpautop).

1.0.2

  • Initial release for WordPress plugin directory.


  1. Upload the plugin files to the /wp-content/plugins/restrict-anonymous-access directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Use the shortcode [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.
  4. Optional parameters are 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.
  5. Use parameter role="[subscriber|contributor|author|editor|admin|your-custom-role]", e.g. role="editor" to hide content from users below editor capabilities.


Inserted the shortcode in WordPress content editor.
Screenshot 1


Front-end view with anonymous user, content is hidden and info message shown instead.
Screenshot 2


Front-end view with logged-in user, content is shown.
Screenshot 3



 

Click here to cancel reply.

Click here to cancel reply.


*

*


Please copy the string 7pMebM to the field below:

Home | Sitemap | Contact
Network Skin Theme for BioShip by WordQuest
Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.