確實可以改善我們在網站上的用戶體驗的一項附加功能是,可以在類別中的每個單獨文件(而不是僅類別本身)上將公開/私有設置為可見。
請考慮以下情形:
<i>We have an online course, but users can purchase different packages (bronze, silver and gold package).</i><b>我們有在線課程,但用戶可以購買不同的套餐(青銅,銀和金套餐)。</b> <i>The bronze package only provides you with the basic template files, while the gold package grants the user access to all available files.</i><b>青銅色軟件包僅為您提供基本的模板文件,而金黃色軟件包則授予用戶訪問所有可用文件的權限。</b> <i>Instead of adding multiple categories of files to the same lesson, we would like to be able to list all files connected to that lesson in one category, but then set the gold level files to only be accessible by gold user roles.</i><b>我們希望能夠在一個類別中列出與該課程相關的所有文件,而不是將多個類別的文件添加到同一課程中,而是將黃金級文件設置為只能由黃金用戶角色訪問。</b>
<i>Currently the user's page looks like this, because they have a gold membership status and can see all the category shortcodes added to the lesson.</i><b>當前,用戶頁面看起來像這樣,因為它們具有黃金會員狀態,並且可以看到添加到課程中的所有類別簡碼。</b> <i>Ideally we'd like all the files in one table only.</i><b>理想情況下,我們只希望將所有文件放在一個表中。</b>