
內容簡介
HDWebmobile Media Folder Roles 讓您能夠將 WordPress 媒體庫組織成層級資料夾,並根據使用者角色限制對這些資料夾的存取權限,提升媒體管理的靈活性與安全性。
【主要功能】
• 創建和管理層級媒體資料夾
• 為每個資料夾指派基於角色的權限
• 根據資料夾權限限制媒體的檢視和編輯
• 完全兼容 PublishPress Capabilities 進行進階角色管理
外掛標籤
開發者團隊
② 後台搜尋「HDWebmobile Media Folder Roles」→ 直接安裝(推薦)
原文外掛簡介
HDWebmobile Media Folder Roles allows you to organize your WordPress Media Library into hierarchical folders and restrict access to these folders based on user roles.
Key Features:
* Create and manage hierarchical media folders.
* Assign role-based permissions to each folder.
* Restrict media viewing and editing based on folder permissions.
* Fully compatible with PublishPress Capabilities for advanced role management.
How to Use
1. Create your folders
Go to Media > Folders (Screenshot 3). This is a standard WordPress taxonomy screen — add a folder by name the same way you’d add a category, and optionally assign a Parent Media Folder to build a hierarchy (e.g. “Team Photos” under “Marketing”).
2. Set who can access each folder
Click into any folder to edit it and you’ll see an Allowed Roles checklist (Screenshot 2) alongside the normal name/slug/parent/description fields. Tick every role that should be able to view and use media inside that folder — Administrators can always access everything regardless of what’s ticked. Leaving every box unticked means only Administrators can see that folder’s contents.
3. Organize and browse from the Media Library
Open Media > Library and you’ll see a Folders panel added to the left of the normal grid/list view (Screenshot 1). From here you can:
Click New Folder to create one without leaving the Library.
Drag and drop media items onto a folder in the sidebar to file them.
Click a folder to filter the grid down to just its contents; click All Files to clear the filter.
Use Rename / Delete above the folder tree while a folder is selected.
4. What non-admin users see
Once you save role restrictions on a folder, any logged-in user whose role isn’t on that folder’s Allowed Roles list will simply not see that folder or its media in their own Media Library — the filtering happens automatically on both the classic list view and the AJAX-driven media grid/uploader, so it applies consistently everywhere media is selected (post editor, featured image, etc.).
5. Using PublishPress Capabilities (optional)
If you also run PublishPress Capabilities, its more granular capability controls layer on top of this plugin’s role-based folder access without any extra setup — this plugin doesn’t require PublishPress Capabilities to work on its own.
