前言介紹
- 這款 WordPress 外掛「Visibility Control for WPCourseware」是 2023-10-25 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2025-04-21,距離現在已有 12 天。
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
lms | hide | elearning | hide content | wp courseware |
內容簡介
- WP Courseware可幫助使用者在WordPress頁面上根據特定條件隱藏消息和內容。
- 可以基於以下條件顯示/隱藏HTML元素、菜單和其他細節:
1. 使用者對於特定WP Courseware課程的訪問權限,
2. 使用者對於特定WP Courseware課程的課程完成狀態,
3. 使用者的登入或登出狀態,
4. 使用者的角色。
- 只需將CSS類加入元素的div或span即可。
- 如果要對已登入的使用者顯示元素/菜單項,請添加此CSS類: visible_to_logged_in或hidden_to_logged_out。
- 如果要對已登入的使用者隱藏元素/菜單項,請添加此CSS類: visible_to_logged_out或hidden_to_logged_in。
- 如果要對於角色為管理員的使用者顯示元素/菜單項,請添加此CSS類: visible_to_role_administrator或hidden_to_role_administrator。
- 如果要對多個特定角色顯示元素,需要將元素添加多次,每個角色添加一次。如果要對特定的多個角色隱藏元素/菜單項,可以將多個CSS類添加到同一個元素中。
- 如果課程ID為123:
- 如果要對有訪問該課程的使用者顯示元素/菜單項,請添加此CSS類: visible_to_course_123。
- 如果要對有訪問該課程的使用者隱藏元素/菜單項,請添加此CSS類: hidden_to_course_123。
- 如果要對完成該課程的使用者顯示元素/菜單項,請添加此CSS類: visible_to_course_complete_123。
- 如果要對完成該課程的使用者隱藏元素/菜單項,請添加此CSS類: hidden_to_course_complete_123。
- 如果要對未完成該課程的使用者顯示元素/菜單項,請添加此CSS類: visible_to_course_incomplete_123。
- 如果要對未完成該課程的使用者隱藏元素/菜單項,請添加此CSS類: hidden_to_course_incomplete_123。
- 該插件使用多個CSS類別來控制可見性,所有這些類別都必須符合條件,才會保持元素可見。如果其中任何一個隱藏了元素,則元素將被隱藏。
- 隱藏的數據/元素已達到瀏覽器,但用戶看不見它。
- 基於以上規則,為所有需要隱藏的CSS元素添加了CSS,頁面加載後,使用jQuery(如果可用)將這些元素從頁面中刪除,因此在檢查中將無法找到它們。
- 頁面加載後呈現的元素被隱藏,但未從DOM/頁面中刪除。
- 未來的發展: 根據對該功能的興趣,我們將決定是否添加短碼和/或Gutenberg區塊以實現此功能。
HTML bulleted list:
- WP Courseware可幫助使用者在WordPress頁面上根據特定條件隱藏消息和內容。
- 可以基於以下條件顯示/隱藏HTML元素、菜單和其他細節:
- 使用者對於特定WP Courseware課程的訪問權限
- 使用者對於特定WP Courseware課程的課程完成狀態
- 使用者的登入或登出狀態
- 使用者的角色
- 只需將CSS類加入元素的div或span即可
- 如果要對已登入的使用者顯示元素/菜單項,請添加適當的CSS類
- 如果要對已登入的使用者隱藏元素/菜單項,請添加適當的CSS類
- 如果要對於角色為管理員的使用者顯示元素/菜單項,請添加適當的CSS類
- 如果課程ID為123,根據使用者對該課程的訪問權限和課程完成狀態,添加適當的CSS類
- 該插件使用多個CSS類別來控制可見性,所有這些類別都必須符合條件,才會保持元素可見
- 隱藏的數據/元素已達到瀏覽器,但用戶看不見它
- 基於以上規則,為所有需要隱藏的CSS元素添加了CSS,頁面加載後,使用jQuery(如果可用)將這些元素從頁面中刪除
- 頁面加載後呈現的元素被隱藏,但未從DOM/頁面中刪除
- 未來的發展: 根據對該功能的興趣,決定是否添加短碼和/或Gutenberg區塊
原文外掛簡介
Visibility Control for WP Courseware 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 WP Courseware Course,
2. User’s course completion status of a particular WP Courseware 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
– Visibility Control for LearnPress LMS
– Visibility Control for LifterLMS
– Visibility Control for TutorLMS
– Visibility Control for MasterStudyLMS
– Visibility Control for Sensei LMS
– Visibility Control for WooCommerce
Related Plugins for WPCourseware LMS:
– Experience API for WPCourseware LMS
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Visibility Control for WPCourseware」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
The Ultimate Video Player For WordPress – by Presto Player 》提升您的視頻水平,讓您的觀眾享受一種現代化的視頻體驗,讓他們愛上您。, 最佳 WordPress 影片播放器 ★★★★★, 視頻是與您的網站訪客建立聯繫的最佳方式。我們...。
Tutor LMS – eLearning and online course solution 》uilder with 10+ question types, Course Prerequisites, Course Attachments, Earning and Commission Allocation, Multi-instructor Support, Selling cour...。
LearnPress – WordPress LMS Plugin 》WordPress LMS Plugin – LearnPress是一個全面的WordPress LMS外掛。這是最好的WordPress LMS外掛之一,可用於輕鬆創建和出售在線課程。您可以創建包含...。
Tutor LMS Elementor Addons 》Tutor LMS Elementor Addons 是一個 WordPress 外掛程式,可以將 Tutor LMS 與 Elementor 網頁建立者同步。它可以幫助您以任何方式設計電子學習課程網站。建...。
Uncanny Toolkit for LearnDash 》重要提示:本外掛需要 PHP 版本 7.2 或以上和 LearnDash 版本 3.6 或以上。, Uncanny Toolkit for LearnDash 外掛新增了 16 種模塊,包括登入表單、登入重新...。
LearnPress – Course Review 》LearnPress 是由 ThimPress 開發的 WordPress LMS 外掛。, LearnPress 課程評論插件為您的課程帶來評論功能。現在學生可以在 LearnPress 站點上進行課程評分...。
LearnPress – Course Wishlist 》LearnPress 是由 ThimPress 開發的 WordPress LMS(學習管理系統)外掛。, LearnPress Wishlist 為 LearnPress 帶來心願清單功能,允許您將喜歡的課程加入列...。
Sensei LMS – Online Courses, Quizzes, & Learning 》打造美觀而引人入勝的線上課程、課程內容和測驗。, Sensei LMS 是 Automattic 所建立的一個教學及學習管理外掛程式,Automattic 是 WordPress.com、WooCommer...。
MasterStudy LMS WordPress Plugin – for Online Courses and Education 》免費的 WordPress LMS 插件 MasterStudy 是任何電子學習業務的全能工具。MasterStudy WordPress LMS 插件可以將任何 WordPress 網站轉換為具備所有必要的電子...。
LifterLMS – WP LMS for eLearning, Online Courses, & Quizzes 》LifterLMS是一個安全的WordPress LMS外掛程式,擁有眾多功能,可以輕鬆地創建和銷售課程。您可以將WordPress網站轉變為專業的電子學習平台,擁有從LMS中可能...。
Design Upgrade for LearnDash 》LearnDash 是一款強大的學習管理系統 (LMS),用於管理線上課程,但有些地方的設計還是有所不足,為了提供您的學生非凡的學習體驗,您需要一個專業的設計。, ...。
LearnPress – Prerequisites Courses 》LearnPress 是由 ThimPress 開發的 WordPress LMS(線上學習管理系統)外掛。, LearnPress Prerequisites(前置課程)是 LearnPress 的一個外掛,可以讓您在 ...。
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses Plugin 》總結:FluentCommunity 是一個全功能的社群與學習管理系統外掛,提供強大的社群功能和LMS功能,讓您輕鬆建立充滿活力的社群與管理課程,而且不會拖慢您的伺服...。
Premium Courses & eLearning with Paid Memberships Pro for LearnDash, LifterLMS, Sensei LMS & TutorLMS 》保護並出售會員限定課程採用循環訂閱的WordPress外掛。, 這是一個多功能的外掛程式,為Paid Memberships Pro提供原生課程功能。使用內建功能,您可以:, , 創...。
GamiPress – LearnDash integration 》完成學習通(LearnDash)網站的「遊戲化(Gamify)」,感謝強大的WordPress外掛:GamiPress!, , 該外掛自動連接GamiPress和LearnDash並新增活動事件。, , 新增的...。