Using Block Visibility Settings
When using blocks in the WordPress Gutenberg editor, there are visibility settings that allow you to control who can see the content you put into that block. A block can be displayed to:
- everyone
- enrolled users
- non-enrolled users or visitors
- logged in users
- logged out users
Video Demo
When you click on a block in the editor, the enrollment visibility settings are on the side of the screen.
If you choose to display the block’s content to enrolled users, you can select which courses or memberships the users must be enrolled in to view the block’s content.
If you choose to display the block’s content to non-enrolled users or visitors, you can select which courses or memberships the users should not be enrolled in to view the block’s content.