{"id":125024,"date":"2020-07-21T16:08:01","date_gmt":"2020-07-21T16:08:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/hideshow-postpage-content\/"},"modified":"2024-12-30T15:14:29","modified_gmt":"2024-12-30T15:14:29","slug":"hideshow-postpage-content","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/hideshow-postpage-content\/","author":15524857,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.4","stable_tag":"1.5.4","tested":"6.7.5","requires":"5.9","requires_php":"8.0","requires_plugins":null,"header_name":"Hide\/Show Post\/Page Content","header_author":"SOSidee.com srl","header_description":"Hide or show a selected part of public posts\/pages content depending on if the user is logged or not","assets_banners_color":"202122","last_updated":"2024-12-30 15:14:29","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/sosidee.com","rating":4.6,"author_block_rating":0,"active_installs":100,"downloads":6231,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":{"1.0":{"tag":"1.0","author":"sosidee","date":"2020-08-07 15:41:27"},"1.1":{"tag":"1.1","author":"sosidee","date":"2020-08-18 12:24:17"},"1.2":{"tag":"1.2","author":"sosidee","date":"2020-12-15 10:57:50"},"1.4":{"tag":"1.4","author":"sosidee","date":"2022-04-14 15:08:53"},"1.5":{"tag":"1.5","author":"sosidee","date":"2022-07-08 13:33:49"},"1.5.1":{"tag":"1.5.1","author":"sosidee","date":"2022-07-26 14:22:43"},"1.5.2":{"tag":"1.5.2","author":"sosidee","date":"2022-09-09 15:39:20"},"1.5.3":{"tag":"1.5.3","author":"sosidee","date":"2022-12-09 15:10:21"},"1.5.4":{"tag":"1.5.4","author":"sosidee","date":"2024-12-30 15:14:29"}},"upgrade_notice":{"":"<p>Minor updates.<\/p>"},"ratings":{"1":0,"2":0,"3":1,"4":0,"5":4},"assets_icons":{"icon-128x128.gif":{"filename":"icon-128x128.gif","revision":2344198,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.gif":{"filename":"icon-256x256.gif","revision":2344198,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":2344581,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2344581,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.4","1.5","1.5.1","1.5.2","1.5.3","1.5.4"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":2439698,"resolution":"1","location":"assets","locale":""},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":2439698,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"The info page (Tools Menu)","2":"The Elementor widget (General Category)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[5237,213526,13341,5236,188595],"plugin_category":[],"plugin_contributors":[188597],"plugin_business_model":[],"class_list":["post-125024","plugin","type-plugin","status-publish","hentry","plugin_tags-hide-content","plugin_tags-hide-image","plugin_tags-hide-text","plugin_tags-show-content","plugin_tags-show-text","plugin_contributors-sosidee","plugin_committers-giannisosidee","plugin_committers-massimososidee","plugin_committers-sosidee","plugin_support_reps-giannisosidee","plugin_support_reps-massimososidee"],"banners":{"banner":"https:\/\/ps.w.org\/hideshow-postpage-content\/assets\/banner-772x250.jpg?rev=2344581","banner_2x":"https:\/\/ps.w.org\/hideshow-postpage-content\/assets\/banner-1544x500.jpg?rev=2344581","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/hideshow-postpage-content\/assets\/icon-128x128.gif?rev=2344198","icon_2x":"https:\/\/ps.w.org\/hideshow-postpage-content\/assets\/icon-256x256.gif?rev=2344198","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/hideshow-postpage-content\/assets\/screenshot-1.jpg?rev=2439698","caption":"The info page (Tools Menu)"},{"src":"https:\/\/ps.w.org\/hideshow-postpage-content\/assets\/screenshot-2.jpg?rev=2439698","caption":"The Elementor widget (General Category)"}],"raw_content":"<!--section=description-->\n<p>It permits to <strong>hide<\/strong> or <strong>show<\/strong> part of the content of posts or pages to users that are <em>logged<\/em> or <em>not<\/em>.\nIt's also possibile to select the role(s) or the username(s) of logged users.<\/p>\n\n<p>The content to be hidden or displayed must be included in a <em>shortcode<\/em> tagged as '<strong>soshsc<\/strong>'.<\/p>\n\n<p>The info page is available under the <strong>Tools<\/strong> menu.<\/p>\n\n<p>It's compatible with <strong>Elementor<\/strong> from the version 2.0.\nThe widget is in the <em>general<\/em> category.<\/p>\n\n<p><strong>Shortcode parameters<\/strong><\/p>\n\n<p>hide=\"guest\"\n<em>hides content to guests<\/em><\/p>\n\n<p>hide=\"logged\"\n<em>hides content to legged users<\/em><\/p>\n\n<p>show=\"guest\"\n<em>displays content to guests<\/em><\/p>\n\n<p>show=\"logged\"\n<em>displays content to legged users<\/em><\/p>\n\n<p>role=\"subscriber\"\n<em>enables the action (show\/hide) only to users with the 'Subscriber' role<\/em><\/p>\n\n<p>role=\"subscriber,editor\"\n<em>enables the action (show\/hide) only to users with the 'Subscriber' or 'Editor' role<\/em><\/p>\n\n<p>user=\"foo\"\n<em>enables the action (show\/hide) only to the user with username 'foo'<\/em><\/p>\n\n<p>user=\"foo,bar\"\n<em>enables the action (show\/hide) only to the users with username 'foo' or 'bar'<\/em><\/p>\n\n<p>Examples:<\/p>\n\n<ol>\n<li><p>Hide content to unlogged users:\n[soshsc hide=\"guest\"]<em>This content is hidden only to users not logged.<\/em>[\/soshsc]<\/p><\/li>\n<li><p>Hide content to logged users:\n[soshsc hide=\"logged\"]<em>This content is hidden only to logged users.<\/em>[\/soshsc]<\/p><\/li>\n<li><p>Show content only to unlogged users:\n[soshsc show=\"guest\"]<em>This content is displayed only to users not logged.<\/em>[\/soshsc]<\/p><\/li>\n<li><p>Show content only to logged users:\n[soshsc show=\"logged\" role=\"administrator\"]<em>This content is displayed only to administrators.<\/em>[\/soshsc]<\/p><\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.5.4<\/h4>\n\n<ul>\n<li>Updated the custom library<\/li>\n<\/ul>\n\n<h4>1.5.3<\/h4>\n\n<ul>\n<li>Added a workaround to load the core file 'pluggable.php' before using the cache_users() function [WordPress 6.1 bug]<\/li>\n<\/ul>\n\n<h4>1.5.2<\/h4>\n\n<ul>\n<li>Updated the internal php library<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>Fixed a PHP notice in the info page<\/li>\n<li>Updated the internal php library<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Added the do_shortcode() function to allow nested shortcodes<\/li>\n<li>Minor fixes and changes<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added shortcode parameters to select logged users by role or username<\/li>\n<li>Minor changes<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Configured the localization settings<\/li>\n<li>Added the italian translation<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<p>Implemented the compatibility with Elementor 2.x<\/p>\n\n<h4>1.0<\/h4>\n\n<p>First release<\/p>","raw_excerpt":"Hides or shows a selected part of public posts\/pages content (text, images, etc.) depending on whether the user is logged or not.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/125024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=125024"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sosidee"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=125024"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=125024"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=125024"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=125024"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=125024"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=125024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}