BACK TO DIRECTORY

Restrict Anonymous Access

by Christian Leuenberg

5.0
(3 ratings)

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

Screenshots

Inserted the shortcode in WordPress content editor.

Inserted the shortcode in WordPress content editor.

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

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

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

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

Plugin Details

Active Installs
80
Total Downloads
3,666
Version
1.2.1
Requires WP
Requires PHP
Tested Up To
6.7.7
Added
2017-06-09
Last Updated
2025-01-21 9:58am GMT

Ratings

5
3
4
0
3
0
2
0
1
0