{"id":27308,"date":"2014-01-18T05:52:43","date_gmt":"2014-01-18T05:52:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/content-hider\/"},"modified":"2014-01-18T06:01:31","modified_gmt":"2014-01-18T06:01:31","slug":"content-hider","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/content-hider\/","author":5709592,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"0.1","tested":"3.7.41","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"Content Hider","header_author":"Hassan Akhtar","header_description":"","assets_banners_color":"","last_updated":"2014-01-18 06:01:31","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/wpgurus.net\/","header_plugin_uri":"http:\/\/wpgurus.net\/","header_author_uri":"http:\/\/wpgurus.net\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":2730,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[19898,19899,1932,19900,17992],"plugin_category":[58],"plugin_contributors":[80768],"plugin_business_model":[],"class_list":["post-27308","plugin","type-plugin","status-closed","hentry","plugin_tags-members-only","plugin_tags-members-only-content","plugin_tags-membership","plugin_tags-membership-website","plugin_tags-private-content","plugin_category-user-management","plugin_contributors-khaxan","plugin_committers-khaxan"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/content-hider.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This light weight plugin can be used to hide posts and pages from specified user roles. All you have to do is wrap the target content in the shortcode [lock_content]. The plugin also adds a new button to the default WordPress editor so you can lock content quickly and effortlessly.<\/p>\n\n<p><strong>Features:<\/strong><\/p>\n\n<p><strong>Custom error messages:<\/strong> You can specify the error message while hiding the content. Just add an error attribute to the shortcode. For instance:<\/p>\n\n<pre><code>[lock_content error=\"You need to log in first\"]Some text[\/lock_content]\n<\/code><\/pre>\n\n<p>Also, you can add a default error message in the control panel that will be displayed in case the error attribute of the shortcode is absent.<\/p>\n\n<p><strong>User levels:<\/strong> By specifying a role in the shortcode you can decide which members see the hidden content. For instance:<\/p>\n\n<pre><code>[lock_content role=\"author\"]Text visible to authors, editors and admins[\/lock_content]\n<\/code><\/pre>\n\n<p>You can also set a default access level in the control panel.<\/p>\n\n<p><strong>Capabilities:<\/strong> You can also block access by specifying a capability instead of a role. This may come in handy if you have custom roles on your website. Here's an example of this feature:<\/p>\n\n<pre><code>[lock_content capability=\"activate_plugins\"]Text visible to admins[\/lock_content]\n<\/code><\/pre>\n\n<p>If you like this plugin please give it a good rating.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Use WordPress' plugin installer to install the plugin.<\/li>\n<li>Set default values in the control panel (optional).<\/li>\n<li>In the WordPress editor select the content you want to hide and click the lock icon in the top panel. The selected text will automatically be wrapped in the shortcode.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Restrict access to your content by wrapping it in a simple shortcode. You can grant access to certain roles or users who have a certain capability.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27308"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/khaxan"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27308"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27308"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27308"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27308"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27308"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}