Title: Visibility Control for MasterStudy
Author: Pankaj Agrawal
Published: <strong>जुलाई 15, 2024</strong>
Last modified: सितम्बर 11, 2025

---

Search plugins

![](https://ps.w.org/visibility-control-for-masterstudy/assets/banner-772x250.png?
rev=3118064)

![](https://ps.w.org/visibility-control-for-masterstudy/assets/icon-256x256.png?
rev=3118064)

# Visibility Control for MasterStudy

 By [Pankaj Agrawal](https://profiles.wordpress.org/liveaspankaj/)

[Download](https://downloads.wordpress.org/plugin/visibility-control-for-masterstudy.1.0.zip)

 * [Details](https://mai.wordpress.org/plugins/visibility-control-for-masterstudy/#description)
 * [Reviews](https://mai.wordpress.org/plugins/visibility-control-for-masterstudy/#reviews)
 *  [Installation](https://mai.wordpress.org/plugins/visibility-control-for-masterstudy/#installation)
 * [Development](https://mai.wordpress.org/plugins/visibility-control-for-masterstudy/#developers)

 [Support](https://wordpress.org/support/plugin/visibility-control-for-masterstudy/)

## Description

Visibility Control for MasterStudy 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 **MasterStudy LMS Course**, 2. User’s course completion status of
a particular **MasterStudy LMS Course**, Or 3. User is **Logged In** or **Logged
Out**. 4. 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](https://www.nextsoftwaresolutions.com/learndash-visibility-control/)–
[Visibility Control for WP Courseware LMS](https://www.nextsoftwaresolutions.com/visibility-control-for-wp-courseware/)–
[Visibility Control for LearnPress LMS](https://www.nextsoftwaresolutions.com/visibility-control-for-learnpress/)–
[Visibility Control for LifterLMS](https://www.nextsoftwaresolutions.com/visibility-controlfor-lifterlms/)–
[Visibility Control for TutorLMS](https://www.nextsoftwaresolutions.com/visibility-control-for-tutorlms/)–
[Visibility Control for Sensei LMS](https://www.nextsoftwaresolutions.com/visibility-control-for-sensei/)–
[Visibility Control for WooCommerce](https://www.nextsoftwaresolutions.com/woocommerce-visibility-control/)

**Related Plugins for MasterStudy LMS:**
 – [Experience API for MasterStudy LMS](https://www.nextsoftwaresolutions.com/experience-api-for-masterstudy-lms/)

## Screenshots

 * [[
 * Show menu only to Loggout user
 * [[
 * Show menu only to Logged In user (or Course access)
 * [[
 * Show a message if user has access to course (using HTML anywhere)
 * [[
 * Show a message if user doesn’t have access to course (using Additional CSS class)

## Installation

This section describes how to install the plugin and get it working.

e.g.

 1. Upload the plugin files to the `/wp-content/plugins/visibility-control-for-masterstudy`
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Add the CSS classes to your HTML elements or Menu Items as described in the Details
    section.

## FAQ

### What is MasterStudy LMS?

MasterStudy LMS is a popular WordPress based Learning Management System (LMS) plugin.
It includes many advanced features including, quizzing engine, course management,
reports, certificates and payment methods.

You can also add GrassBlade xAPI Companion plugin and GrassBlade LRS to start using
Experience API (xAPI) based contents with MasterStudy LMS.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Visibility Control for MasterStudy” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Pankaj Agrawal ](https://profiles.wordpress.org/liveaspankaj/)

[Translate “Visibility Control for MasterStudy” into your language.](https://translate.wordpress.org/projects/wp-plugins/visibility-control-for-masterstudy)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/visibility-control-for-masterstudy/),
check out the [SVN repository](https://plugins.svn.wordpress.org/visibility-control-for-masterstudy/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/visibility-control-for-masterstudy/)
by [RSS](https://plugins.trac.wordpress.org/log/visibility-control-for-masterstudy/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

Initial Version

## Meta

 *  Version **1.0**
 *  Last updated **7 months ago**
 *  Active installations **40+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/visibility-control-for-masterstudy/)
 * Tags
 * [elearning](https://mai.wordpress.org/plugins/tags/elearning/)[hide content](https://mai.wordpress.org/plugins/tags/hide-content/)
   [Hide Message](https://mai.wordpress.org/plugins/tags/hide-message/)[lms](https://mai.wordpress.org/plugins/tags/lms/)
   [masterstudy](https://mai.wordpress.org/plugins/tags/masterstudy/)
 *  [Advanced View](https://mai.wordpress.org/plugins/visibility-control-for-masterstudy/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/visibility-control-for-masterstudy/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/visibility-control-for-masterstudy/reviews/)

## Contributors

 *   [ Pankaj Agrawal ](https://profiles.wordpress.org/liveaspankaj/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/visibility-control-for-masterstudy/)