{"id":6839,"date":"2009-09-29T09:43:03","date_gmt":"2009-09-29T09:43:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/show-content-by-user-level\/"},"modified":"2009-09-29T09:49:22","modified_gmt":"2009-09-29T09:49:22","slug":"show-content-by-user-level","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/show-content-by-user-level\/","author":4646452,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"trunk","tested":"2.7.1","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"Show Content by User Level","header_author":"Nicholas Caporusso","header_description":"","assets_banners_color":"","last_updated":"2009-09-29 09:49:22","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.nicholascaporusso.com","header_plugin_uri":"http:\/\/www.nicholascaporusso.com","header_author_uri":"http:\/\/www.nicholascaporusso.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3437,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"None yet."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[529,1935,3710,22683],"plugin_category":[],"plugin_contributors":[92918],"plugin_business_model":[],"class_list":["post-6839","plugin","type-plugin","status-publish","hentry","plugin_tags-content","plugin_tags-permission","plugin_tags-role","plugin_tags-user-level","plugin_contributors-nicholascaporusso","plugin_committers-nicholascaporusso"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/show-content-by-user-level.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plug-in hides a specific part of the content of a page (or post) to all users whose user level is below a required user level.<\/p>\n\n<p>Therefore, if a content is visible to user level X:\n1. if X &gt; 0 users who are not registered will not be able to access that specific content;\n2. users whose user level is less than X will not be able to access that specific content;\n3. users whose user level is equal or greater than X will be able to access that specific content.<\/p>\n\n<p>To hide a specific content, use the following syntax to encapsulate the hidden content:\n[hide {level}] {content} [hide {level}]\nwhere {level} is the NUMBER corresponding to the user level, and {content} is the part of you want to hide.<\/p>\n\n<p>Example:\n[hide 0] You will always see this content [hide 0]\n[hide 1] You will not see this if you are not logged as subscriber [hide 1]\n[hide 2] You will not see this if you are not logged as contributor [hide 2]\n[hide 3] You will not see this if you are not logged as author [hide 3]\n[hide 4] You will not see this if you are not logged as editor [hide 4]\n[hide 5] You will not see this if you are not logged as administrator [hide 5]<\/p>\n\n<p>Fancy example:<\/p>\n\n<p>[hide 1] You will see this if you are logged as subscriber [hide 5], but you will not see this if you are not logged as administrator [hide 5][hide 1]<\/p>\n\n<p>For further help, please visit http:\/\/www.nicholascaporusso.com\/showcontent-by-userlevel\/<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload <code>showcontent_by_userlevel.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Encapsulate the content you want hidden by using the syntax [hide {level}] {content} [hide {level}]<\/li>\n<li>Remember: {level} is a NUMBER corresponding to the user level who CAN can view {content}.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Questions?<\/dt>\n<dd><p>Post a comment to: http:\/\/www.nicholascaporusso.com\/showcontent-by-userlevel\/<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"This simple plug-in hides content from all users except those that exceed a specific user level.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6839"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nicholascaporusso"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6839"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6839"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6839"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6839"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6839"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}