{"id":195818,"date":"2024-07-15T07:06:01","date_gmt":"2024-07-15T07:06:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/visibility-control-for-masterstudy-lms\/"},"modified":"2025-09-11T07:24:27","modified_gmt":"2025-09-11T07:24:27","slug":"visibility-control-for-masterstudy","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/visibility-control-for-masterstudy\/","author":11471625,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"6.8.5","requires":"4.0","requires_php":"5.6","requires_plugins":null,"header_name":"Visibility Control for MasterStudy LMS","header_author":"Next Software Solutions","header_description":"Control visibility of HTML elements, menus, and other details on your website based on User's access to specific MasterStudy LMS Course, Role or Login status. Add CSS class: visible_to_course_123 to show the element\/menu item to user with access to Course with ID 123. Add CSS Class: hidden_to_course_123 to hide the element from user with access to Course with ID 123. Add CSS class: visible_to_logged_in to show the element\/menu item to a logged in user. Add CSS class: hidden_to_logged_in or visible_to_logged_out to show the element\/menu item to a logged out users. More Classes: visible_to_role_administrator, hidden_to_role_administrator, visible_to_course_complete_123, hidden_to_course_complete_123, visible_to_course_incomplete_123, hidden_to_course_incomplete_123. Currently, this will only hide the content using CSS.","assets_banners_color":"5970bd","last_updated":"2025-09-11 07:24:27","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.nextsoftwaresolutions.com\/visibility-control-for-masterstudy\/","header_author_uri":"https:\/\/www.nextsoftwaresolutions.com","rating":0,"author_block_rating":0,"active_installs":40,"downloads":1596,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"liveaspankaj","date":"2025-09-11 07:24:27"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3118064,"resolution":"256x256","location":"assets","locale":""},"icon-512x512.png":{"filename":"icon-512x512.png","revision":3118064,"resolution":"512x512","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3118064,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3118064,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3118064,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3118064,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3118064,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3118064,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Show menu only to Loggout user","2":"Show menu only to Logged In user (or Course access)","3":"Show a message if user has access to course (using HTML anywhere)","4":"Show a message if user doesn't have access to course (using Additional CSS class)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[18342,5237,228096,2195,179378],"plugin_category":[],"plugin_contributors":[175544],"plugin_business_model":[],"class_list":["post-195818","plugin","type-plugin","status-publish","hentry","plugin_tags-elearning","plugin_tags-hide-content","plugin_tags-hide-message","plugin_tags-lms","plugin_tags-masterstudy","plugin_contributors-liveaspankaj","plugin_committers-liveaspankaj"],"banners":{"banner":"https:\/\/ps.w.org\/visibility-control-for-masterstudy\/assets\/banner-772x250.png?rev=3118064","banner_2x":"https:\/\/ps.w.org\/visibility-control-for-masterstudy\/assets\/banner-1544x500.png?rev=3118064","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/visibility-control-for-masterstudy\/assets\/icon-256x256.png?rev=3118064","icon_2x":"https:\/\/ps.w.org\/visibility-control-for-masterstudy\/assets\/icon-256x256.png?rev=3118064","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/visibility-control-for-masterstudy\/assets\/screenshot-1.png?rev=3118064","caption":"Show menu only to Loggout user"},{"src":"https:\/\/ps.w.org\/visibility-control-for-masterstudy\/assets\/screenshot-2.png?rev=3118064","caption":"Show menu only to Logged In user (or Course access)"},{"src":"https:\/\/ps.w.org\/visibility-control-for-masterstudy\/assets\/screenshot-3.png?rev=3118064","caption":"Show a message if user has access to course (using HTML anywhere)"},{"src":"https:\/\/ps.w.org\/visibility-control-for-masterstudy\/assets\/screenshot-4.png?rev=3118064","caption":"Show a message if user doesn't have access to course (using Additional CSS class)"}],"raw_content":"<!--section=description-->\n<p>Visibility Control for MasterStudy helps you hide messages and content for specific criterion anywhere on your WordPress page.<\/p>\n\n<p>You can show\/hide HTML elements, menus, and other details based on:\n1. User's access to a particular <strong>MasterStudy LMS Course<\/strong>,\n2. User's course completion status of a particular <strong>MasterStudy LMS Course<\/strong>, Or\n3. User is <strong>Logged In<\/strong> or <strong>Logged Out<\/strong>.\n4. User's role.<\/p>\n\n<p>You simply need to add a CSS class to your element div or span. As explained here:<\/p>\n\n<p><strong>Example:<\/strong><\/p>\n\n<p>Login\/Logout Status:<\/p>\n\n<ul>\n<li>To show the element\/menu item to a logged-in user, add this CSS class: <strong>visible_to_logged_in<\/strong> OR  <strong>hidden_to_logged_out<\/strong><\/li>\n<li>To hide the element\/menu item from a logged-in user, add this CSS class: <strong>visible_to_logged_out<\/strong> OR  <strong>hidden_to_logged_in<\/strong><\/li>\n<\/ul>\n\n<p>For user's role:\n* To show the element\/menu item to a user will role administrator, add this CSS class: <strong>visible_to_role_administrator<\/strong> OR <strong>hidden_to_role_administrator<\/strong>\n* 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.<\/p>\n\n<p>If Course ID is 123<\/p>\n\n<ul>\n<li>To show the element\/menu item to user with access to above Course, add this CSS class: <strong>visible_to_course_123<\/strong><\/li>\n<li>To hide the element\/menu item from user with access to above Course, add this CSS class: <strong>hidden_to_course_123<\/strong><\/li>\n<li>To show the element\/menu item to a logged-in user, add this CSS class: <strong>visible_to_logged_in<\/strong> OR  <strong>hidden_to_logged_out<\/strong><\/li>\n<li>To hide the element\/menu item from a logged-in user, add this CSS class: <strong>visible_to_logged_out<\/strong> OR  <strong>hidden_to_logged_in<\/strong><\/li>\n<\/ul>\n\n<p>For a course completion status, if Course ID is 123:<\/p>\n\n<ul>\n<li>To show the element\/menu item to user who completed above course, add this CSS class: <strong>visible_to_course_complete_123<\/strong><\/li>\n<li>To hide the element\/menu item from user who completed above course, add this CSS class: <strong>hidden_to_course_complete_123<\/strong><\/li>\n<li>To show the element\/menu item to user who has not completed above course, add this CSS class: <strong>visible_to_course_incomplete_123<\/strong><\/li>\n<li>To hide the element\/menu item from user who has not completed above course, add this CSS class: <strong>hidden_to_course_incomplete_123<\/strong><\/li>\n<\/ul>\n\n<p><strong>Mechanism of Functioning<\/strong><\/p>\n\n<ul>\n<li><strong>Multiple CSS Classes:<\/strong> 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.<\/li>\n<li>Hidden data\/elements reaches the browser. Though user's do not see it.<\/li>\n<li>CSS is added to the page for all CSS elements that needs to be hidden based on above rules.<\/li>\n<li>After page is loaded. These elements are removed from page using jQuery (if available), so it won't be available on Inspect.<\/li>\n<li>Elements rendered after the page load are hidden but not removed from DOM\/page.<\/li>\n<\/ul>\n\n<p><strong>Future Development<\/strong><\/p>\n\n<p>Depending on the interest in this feature, we will decide on adding a shortcode and\/or a Gutenberg Block to achieve this feature.<\/p>\n\n<p><strong>Other Visibility Control Plugins:<\/strong>\n- <a href=\"https:\/\/www.nextsoftwaresolutions.com\/learndash-visibility-control\/\">Visibility Control for LearnDash LMS<\/a>\n- <a href=\"https:\/\/www.nextsoftwaresolutions.com\/visibility-control-for-wp-courseware\/\">Visibility Control for WP Courseware LMS<\/a>\n- <a href=\"https:\/\/www.nextsoftwaresolutions.com\/visibility-control-for-learnpress\/\">Visibility Control for LearnPress LMS<\/a>\n- <a href=\"https:\/\/www.nextsoftwaresolutions.com\/visibility-controlfor-lifterlms\/\">Visibility Control for LifterLMS<\/a>\n- <a href=\"https:\/\/www.nextsoftwaresolutions.com\/visibility-control-for-tutorlms\/\">Visibility Control for TutorLMS<\/a>\n- <a href=\"https:\/\/www.nextsoftwaresolutions.com\/visibility-control-for-sensei\/\">Visibility Control for Sensei LMS<\/a>\n- <a href=\"https:\/\/www.nextsoftwaresolutions.com\/woocommerce-visibility-control\/\">Visibility Control for WooCommerce<\/a><\/p>\n\n<p><strong>Related Plugins for MasterStudy LMS:<\/strong>\n- <a href=\"https:\/\/www.nextsoftwaresolutions.com\/experience-api-for-masterstudy-lms\/\">Experience API for MasterStudy LMS<\/a><\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/visibility-control-for-masterstudy<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Add the CSS classes to your HTML elements or Menu Items as described in the Details section.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20is%20masterstudy%20lms%3F'><h3>What is MasterStudy LMS?<\/h3><\/dt>\n<dd><p>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.<\/p>\n\n<p>You can also add GrassBlade xAPI Companion plugin and GrassBlade LRS to start using Experience API (xAPI) based contents with MasterStudy LMS.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<p>Initial Version<\/p>","raw_excerpt":"Visibility Control for MasterStudy LMS helps you hide messages and content for specific criterion anywhere on your WordPress page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/195818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=195818"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/liveaspankaj"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=195818"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=195818"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=195818"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=195818"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=195818"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=195818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}