=== Seenli Blocks ===
Contributors: thevisionofhamza, berqwp
Tags: block, members, visibility, user roles, restrict content
Requires at least: 6.1
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show block content only to logged in users, only to selected user roles, or only to visitors who are not logged in.

== Description ==

Seenli Blocks adds two simple container blocks to the block editor. Put any blocks inside them and choose who gets to see that content.

**If Logged In block**

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.

**If Not Logged In block**

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.

**Why use it**

* Works with any block, including images, buttons, columns and embeds.
* The check happens on the server. Hidden content is never sent to the browser, so it does not show up in the page source.
* No settings page and no build step. Just add the block and go.
* Lightweight. Nothing is loaded on the front end.

**Example**

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.

== Other Products ==

Also check out our other WordPress products.

- [BerqWP](https://berqwp.com/) – All-in-One WordPress performance plugin.
- [WP Replai](https://wpreplai.com/) – 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.
- [ElizaWP](https://elizawp.com/) – SEO MCP for AI agents that researches, writes and publishes for WordPress.
- [CanvoWP](https://canvowp.com/) – Completely free Agent-first website builder plugin. No blocks, no bloat.
- [Berq Markdown](https://wordpress.org/plugins/berq-markdown/) – Automatically generate markdown version of web pages for AI agents.
- [Berq Used CSS](https://wordpress.org/plugins/berq-used-css/) – Remove unused CSS automatically.
- [Camouflage Security](https://wordpress.org/plugins/camouflage/) – Static WordPress Firewall and PHP Isolation.
- [Barlapse](https://wordpress.org/plugins/barlapse/) – Fix admin bar overflow issue in WordPress admin panel.

== Installation ==

1. Upload the `seenli-blocks` folder to `/wp-content/plugins/`, or install the plugin from the Plugins screen in WordPress.
2. Activate the plugin from the Plugins screen.
3. Open a post or page in the block editor and search for "If Logged In" or "If Not Logged In".
4. Add blocks inside it. For the If Logged In block, open the block settings to choose user roles if needed.

== Frequently Asked Questions ==

= Who sees the content if I do not select any roles? =

Every logged in user, no matter their role.

= Can I select more than one role? =

Yes. A user with any of the selected roles will see the content.

= Can people see the hidden content in the page source? =

No. The content is removed on the server before the page is sent, so it is not in the HTML at all.


== 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.

== Changelog ==

= 1.0.0 =
* First release.
* If Logged In block with optional user role selection.
* If Not Logged In block.

== Upgrade Notice ==

= 1.0.0 =
First release.
