{"id":69878,"date":"2017-06-09T10:36:03","date_gmt":"2017-06-09T10:36:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/restrict-anonymous-access\/"},"modified":"2025-01-21T09:58:54","modified_gmt":"2025-01-21T09:58:54","slug":"restrict-anonymous-access","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/restrict-anonymous-access\/","author":15048296,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.1","stable_tag":"1.2.1","tested":"6.7.5","requires":"","requires_php":"","requires_plugins":null,"header_name":"Restrict Anonymous Access","header_author":"Christian Leuenberg, L.net Web Solutions","header_description":"Adds shortcode to restrict content from anonymous users","assets_banners_color":"fdf6f7","last_updated":"2025-01-21 09:58:54","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/paypal.me\/Lnet","header_plugin_uri":"","header_author_uri":"https:\/\/www.l-net.biz\/","rating":5,"author_block_rating":0,"active_installs":80,"downloads":3335,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.3":{"tag":"1.0.3","author":"cleuenberg","date":"2017-06-09 12:09:28"},"1.1":{"tag":"1.1","author":"cleuenberg","date":"2018-12-19 20:36:17"},"1.2":{"tag":"1.2","author":"cleuenberg","date":"2023-09-11 08:19:17"},"1.2.1":{"tag":"1.2.1","author":"cleuenberg","date":"2025-01-21 09:58:54"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":3},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2312263,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2312263,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2312263,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2312263,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.3","1.1","1.2","1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1674583,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1674583,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1674583,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Inserted the shortcode in WordPress content editor.","2":"Front-end view with anonymous user, content is hidden and info message shown instead.","3":"Front-end view with logged-in user, content is shown."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1912,1913,17051,54447],"plugin_category":[],"plugin_contributors":[142278],"plugin_business_model":[],"class_list":["post-69878","plugin","type-plugin","status-publish","hentry","plugin_tags-access-control","plugin_tags-capabilities","plugin_tags-restrict-content","plugin_tags-user-access","plugin_contributors-cleuenberg","plugin_committers-cleuenberg"],"banners":{"banner":"https:\/\/ps.w.org\/restrict-anonymous-access\/assets\/banner-772x250.png?rev=2312263","banner_2x":"https:\/\/ps.w.org\/restrict-anonymous-access\/assets\/banner-1544x500.png?rev=2312263","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/restrict-anonymous-access\/assets\/icon-128x128.png?rev=2312263","icon_2x":"https:\/\/ps.w.org\/restrict-anonymous-access\/assets\/icon-256x256.png?rev=2312263","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/restrict-anonymous-access\/assets\/screenshot-1.png?rev=1674583","caption":"Inserted the shortcode in WordPress content editor."},{"src":"https:\/\/ps.w.org\/restrict-anonymous-access\/assets\/screenshot-2.png?rev=1674583","caption":"Front-end view with anonymous user, content is hidden and info message shown instead."},{"src":"https:\/\/ps.w.org\/restrict-anonymous-access\/assets\/screenshot-3.png?rev=1674583","caption":"Front-end view with logged-in user, content is shown."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>text within shortcode <code>[member][\/member]<\/code> is not visible to anonymous users<\/li>\n<li>hide content based on user roles (subscriber, contributor, author, editor, admin)<\/li>\n<li>restricted text can be replaced with info text box<\/li>\n<li>info text can be customized<\/li>\n<li>comes with a handy TinyMCE button for quick access<\/li>\n<\/ul>\n\n<p>https:\/\/youtu.be\/n3M4C4aktuU<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/restrict-anonymous-access<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Use the shortcode <code>[member][\/member]<\/code> 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.<\/li>\n<li>Optional parameters are <code>showinfo=\"0\"<\/code> to hide the info message, <code>infotext=\"Your custom info for anons.\"<\/code> and <code>class=\"my-custom-css-class\"<\/code> for adding CSS class to the info box.<\/li>\n<li>Use parameter <code>role=\"[subscriber|contributor|author|editor|admin|your-custom-role]\"<\/code>, e.g. <code>role=\"editor\"<\/code> to hide content from users below editor capabilities.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fixed vulnerability to Cross Site Scripting (XSS).<\/li>\n<li>Tested with WordPress 5.7.1.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added compatibility to custom user roles.<\/li>\n<li>Added HTML support for infotext parameter.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added optional user role based content restriction.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Tested with WordPress 4.8.<\/li>\n<li>Fixed: Text output with paragraph tag (wpautop).<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Initial release for WordPress plugin directory.<\/li>\n<\/ul>","raw_excerpt":"Adds a shortcode to restrict content from anonymous users.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/69878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=69878"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/cleuenberg"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=69878"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=69878"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=69878"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=69878"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=69878"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=69878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}