WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Pankaj Agrawal v1.8

Visibility Control for LearnPress

Visibility Control for LearnPress helps you hide messages and content for specific criterion anywhere on your WordPress page.

Visibility Control for LearnPress

The facts

Rating
5★ from 1
Active installs
700+
Price
Free
Last updated
11 Sep 2025
Added
Jul 2020
Requires WP
4.0
Tested up to
WP 6.8.8
Requires PHP
5.6
Downloads
17,389

Our analysis

AI-assisted

Visibility Control for LearnPress is a WordPress plugin designed to manage the visibility of content based on user criteria within LearnPress courses. It allows you to show or hide HTML elements, menus, and other details depending on whether users are logged in, their roles, or their access to specific courses.

To implement this, you add specific CSS classes to the elements you wish to control. The plugin requires basic knowledge of CSS to effectively use its features, making it suitable for users who are comfortable with web development and want to customise their online course experience.

Best for: This plugin is best for LearnPress users who want to customise content visibility based on user access and roles.

What it does well

  • Allows hiding/showing content based on user roles
  • Custom visibility for specific LearnPress courses
  • Supports multiple visibility criteria with CSS classes

Where it falls short

  • Requires knowledge of CSS for implementation
  • Hidden elements are still present in the browser's source code

Verdict

Visibility Control for LearnPress offers a straightforward way to manage content visibility, but it requires some technical knowledge to implement effectively.

From the developer

Pankaj Agrawal's own description of Visibility Control for LearnPress, lightly tidied.

Visibility Control for LearnPress helps you hide messages and content for specific criterion anywhere on your WordPress page.

You can show/hide HTML elements, menus, and other details based on:
1. User’s access to a particular LearnPress Course, Or
2. User is Logged In or Logged Out.
3. User’s role.

You simply need to add a CSS class to your element div or span. As explained here:

Example:

Login/Logout Status:

  • To show the element/menu item to a logged-in user, add this CSS class: visible_to_logged_in OR hidden_to_logged_out
  • To hide the element/menu item from a logged-in user, add this CSS class: visible_to_logged_out OR hidden_to_logged_in

For user’s role:
* To show the element/menu item to a user will role administrator, add this CSS class: visible_to_role_administrator OR hidden_to_role_administrator
* Note: To show an element to multiple specific roles only, you need add the element multiple times, one for each role. To hide an element/menu from specific multiple roles only you can add the element once add multiple classes to the same element.

If Course ID is 123

  • To show the element/menu item to user with access to above Course, add this CSS class: visible_to_course_123
  • To hide the element/menu item from user with access to above Course, add this CSS class: hidden_to_course_123
  • To show the element/menu item to a logged-in user, add this CSS class: visible_to_logged_in OR hidden_to_logged_out
  • To hide the element/menu item from a logged-in user, add this CSS class: visible_to_logged_out OR hidden_to_logged_in

For a course completion status, if Course ID is 123:

  • To show the element/menu item to user who completed above course, add this CSS class: visible_to_course_complete_123
  • To hide the element/menu item from user who completed above course, add this CSS class: hidden_to_course_complete_123
  • To show the element/menu item to user who has not completed above course, add this CSS class: visible_to_course_incomplete_123
  • To hide the element/menu item from user who has not completed above course, add this CSS class: hidden_to_course_incomplete_123

Mechanism of Functioning

  • Multiple CSS Classes: If multiple visibility control classes are added, ALL of them must meet the criterion to keep the element visible. If any one of them hides the element, it will be hidden. For example: visible_to_course_123 visible_to_course_124 will show the element only to those who have access to both courses.
  • Hidden data/elements reaches the browser. Though user’s do not see it.
  • CSS is added to the page for all CSS elements that needs to be hidden based on above rules.
  • After page is loaded. These elements are removed from page using jQuery (if available), so it won’t be available on Inspect.
  • Elements rendered after the page load are hidden but not removed from DOM/page.

Future Development

Depending on the interest in this feature, we will decide on adding a shortcode and/or a Gutenberg Block to achieve this feature.

Other Visibility Control Plugins:
Visibility Control for LearnDash LMS
Visibility Control for WP Courseware LMS
Visibility Control for LifterLMS
Visibility Control for TutorLMS
Visibility Control for MasterStudyLMS
Visibility Control for Sensei LMS
Visibility Control for WooCommerce

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for teaching online.

WP Encryption

Lifetime SSL solution - Free SSL certificate & HTTPS redirect, fix insecure site / SSL errors, Security he...

Free 50k+ installs 4.9★ (1,143)
WP Force SSL & HTTPS SSL Redirect

Enable SSL & HTTPS redirect with 1 click! Add SSL certificate & WP Force SSL to redirect site from HTT...

Free 80k+ installs 4.7★ (179)
Uncanny Automator

The AI + Automation plugin for WordPress. Automate workflows across all your plugins and apps, add an AI agent...

Free 40k+ installs 4.9★ (156)
Bit integrations

Contact Form, Google Sheet, MailChimp, Brevo, Webhook, Zoho CRM Automation and Integration plugin that Connect...

Free 20k+ installs 4.9★ (160)
SSL Zen

SSL Zen

86

Free SSL certificate for WordPress — install a Let's Encrypt SSL, force HTTPS, fix mixed content and redi...

Free 10k+ installs 4.9★ (664)
Auto-Install Free SSL

Generate & install Free SSL Certificates for WordPress, HTTPS redirect, get PADLOCK in the browser, get au...

Free 8k+ installs 4.9★ (404)