{"id":375509,"date":"2026-10-14T07:06:51","date_gmt":"2026-10-14T07:06:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/if-logged-in\/"},"modified":"2026-10-14T07:06:15","modified_gmt":"2026-10-14T07:06:15","slug":"seenli-blocks","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/seenli-blocks\/","author":23148973,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.3","requires":"6.1","requires_php":"7.4","requires_plugins":null,"header_name":"Seenli Blocks","header_author":"BerqWP","header_description":"Show block content only to logged in users, only to selected user roles, or only to visitors who are not logged in.","assets_banners_color":"","last_updated":"2026-10-14 07:06:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/berqwp.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":61,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"berqwp","date":"2026-10-14 07:06:15","revision":3745527}},"upgrade_notice":{"1.0.0":"<p>First release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3747808,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3747808,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"seenli-blocks\/if-logged-in":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"seenli-blocks\/if-logged-in","title":"If Logged In","category":"design","icon":"lock","description":"Content inside this block is only visible to logged-in users, optionally limited to selected roles.","textdomain":"seenli-blocks","attributes":{"roles":{"type":"array","items":{"type":"string"},"default":[]}},"supports":{"html":false},"editorScript":"seenli-if-logged-in-editor","render":"file:.\/render.php"},"seenli-blocks\/if-not-logged-in":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"seenli-blocks\/if-not-logged-in","title":"If Not Logged In","category":"design","icon":"unlock","description":"Content inside this block is only visible to visitors who are not logged in.","textdomain":"seenli-blocks","supports":{"html":false},"editorScript":"seenli-if-not-logged-in-editor","render":"file:.\/render.php"}},"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"The If Logged In block in the editor with the role settings open.","2":"The If Not Logged In block in the editor."}},"plugin_section":[],"plugin_tags":[1220,1919,17051,11917,6309],"plugin_category":[58],"plugin_contributors":[232789,222160],"plugin_business_model":[],"class_list":["post-375509","plugin","type-plugin","status-publish","hentry","plugin_tags-block","plugin_tags-members","plugin_tags-restrict-content","plugin_tags-user-roles","plugin_tags-visibility","plugin_category-user-management","plugin_contributors-berqwp","plugin_contributors-thevisionofhamza","plugin_committers-berqwp"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/seenli-blocks\/assets\/icon-128x128.png?rev=3747808","icon_2x":"https:\/\/ps.w.org\/seenli-blocks\/assets\/icon-256x256.png?rev=3747808","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Seenli Blocks adds two simple container blocks to the block editor. Put any blocks inside them and choose who gets to see that content.<\/p>\n\n<p><strong>If Logged In block<\/strong><\/p>\n\n<p>Content inside this block is shown only to logged in users. You can also pick one or more user roles in the block settings. When roles are selected, only users with one of those roles will see the content. Custom roles from other plugins are listed too.<\/p>\n\n<p><strong>If Not Logged In block<\/strong><\/p>\n\n<p>Content inside this block is shown only to visitors who are not logged in. It is a good place for a login prompt, a signup offer or a teaser.<\/p>\n\n<p><strong>Why use it<\/strong><\/p>\n\n<ul>\n<li>Works with any block, including images, buttons, columns and embeds.<\/li>\n<li>The check happens on the server. Hidden content is never sent to the browser, so it does not show up in the page source.<\/li>\n<li>No settings page and no build step. Just add the block and go.<\/li>\n<li>Lightweight. Nothing is loaded on the front end.<\/li>\n<\/ul>\n\n<p><strong>Example<\/strong><\/p>\n\n<p>Place an If Not Logged In block with the message \"Please log in to read the full post\". Right below it, place an If Logged In block with the full post. Visitors see the message and members see the content.<\/p>\n\n<h3>Other Products<\/h3>\n\n<p>Also check out our other WordPress products.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/berqwp.com\/\">BerqWP<\/a> \u2013 All-in-One WordPress performance plugin.<\/li>\n<li><a href=\"https:\/\/wpreplai.com\/\">WP Replai<\/a> \u2013 The skills-powered AI customer support agent that lives inside your site, answering questions, walking visitors through fixes, qualifying leads, and only escalating to your team when it truly should.<\/li>\n<li><a href=\"https:\/\/elizawp.com\/\">ElizaWP<\/a> \u2013 SEO MCP for AI agents that researches, writes and publishes for WordPress.<\/li>\n<li><a href=\"https:\/\/canvowp.com\/\">CanvoWP<\/a> \u2013 Completely free Agent-first website builder plugin. No blocks, no bloat.<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/berq-markdown\/\">Berq Markdown<\/a> \u2013 Automatically generate markdown version of web pages for AI agents.<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/berq-used-css\/\">Berq Used CSS<\/a> \u2013 Remove unused CSS automatically.<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/camouflage\/\">Camouflage Security<\/a> \u2013 Static WordPress Firewall and PHP Isolation.<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/barlapse\/\">Barlapse<\/a> \u2013 Fix admin bar overflow issue in WordPress admin panel.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>seenli-blocks<\/code> folder to <code>\/wp-content\/plugins\/<\/code>, or install the plugin from the Plugins screen in WordPress.<\/li>\n<li>Activate the plugin from the Plugins screen.<\/li>\n<li>Open a post or page in the block editor and search for \"If Logged In\" or \"If Not Logged In\".<\/li>\n<li>Add blocks inside it. For the If Logged In block, open the block settings to choose user roles if needed.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"who%20sees%20the%20content%20if%20i%20do%20not%20select%20any%20roles%3F\"><h3>Who sees the content if I do not select any roles?<\/h3><\/dt>\n<dd><p>Every logged in user, no matter their role.<\/p><\/dd>\n<dt id=\"can%20i%20select%20more%20than%20one%20role%3F\"><h3>Can I select more than one role?<\/h3><\/dt>\n<dd><p>Yes. A user with any of the selected roles will see the content.<\/p><\/dd>\n<dt id=\"can%20people%20see%20the%20hidden%20content%20in%20the%20page%20source%3F\"><h3>Can people see the hidden content in the page source?<\/h3><\/dt>\n<dd><p>No. The content is removed on the server before the page is sent, so it is not in the HTML at all.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<li>If Logged In block with optional user role selection.<\/li>\n<li>If Not Logged In block.<\/li>\n<\/ul>","raw_excerpt":"Show block content only to logged in users, only to selected user roles, or only to visitors who are not logged in.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/375509","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=375509"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/berqwp"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=375509"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=375509"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=375509"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=375509"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=375509"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=375509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}