[WordPress] 外掛分享: Media Restriction

首頁外掛目錄 › Media Restriction
WordPress 外掛 Media Restriction 的封面圖片
40+
安裝啟用
尚無評分
25 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v2.1.0 上架:2025-05-03

內容簡介

下面是外掛 "Media Restriction" 的摘要:這款輕巧且強大的 WordPress 外掛讓網站管理員完全控制媒體庫的可見性。易於根據使用者角色限制媒體檔案的存取,同時有選擇性地允許個別使用者繞過這些限制。適用於多作者部落格、線上課程平台、會員網站和客戶專案 — 這款外掛確保使用者只能存取自己上傳的檔案,減少混亂、困惑和潛在的隱私風險。不論您使用預設的 WordPress 角色還是由 LMS、會員或電子商務外掛建立的自訂角色 — "Media Restriction" 都能順暢運作於整個網站。

HTML 編碼的問題與答案如下:
<ul>
<li>
<strong>外掛 "Media Restriction" 的主要功能有哪些?</strong>
<ul>
<li>根據使用者角色限制媒體存取</li>
<li>排除特定個人的限制</li>
<li>適用於自訂使用者角色</li>
<li>與媒體庫的網格和列表檢視相容</li>
<li>與所有外掛相容</li>
<li>乾淨簡易的設定面板</li>
</ul>
</li>
<li>
<strong>"Media Restriction" 外掛的應用場景有哪些?</strong>
<ul>
<li>線上學習平台(LMS):防止教師看到其他人上傳的課程檔案,允許少數可信任者完全存取。</li>
<li>客戶網站與自由工作者:在多站或共用管理設置中限制客戶只能存取自己的媒體檔案。</li>
<li>多作者部落格:確保每位貢獻者只能看到自己的圖片和上傳檔案,保持媒體庫整潔和安全。</li>
<li>會員社群網站:允許會員上傳個人資料或內容圖片,但限制他們存取管理者上傳的檔案。</li>
<li>代理機構和團隊:讓您的設計師/編輯者受限存取媒體,同時允許管理者或團隊負責人完全存取。</li>
</ul>
</li>
</ul>

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Media Restriction」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Media Restriction is a lightweight and powerful WordPress plugin that gives site admins full control over who can see what in the Media Library. Restrict access by user role so that users only see their own uploads, exclude trusted individuals from the restriction, and keep a full audit trail of every upload, deletion, and library view — all from a clean, modern settings panel.
Whether you manage a multi-author blog, an online course platform, a membership site, or a client project — Media Restriction ensures your media library stays tidy, private, and secure.
What makes v2.0.0 different:
Version 2.0.0 is a complete rebuild. The settings page has been redesigned with a tabbed interface and instant role toggles (no page reloads). A new Activity Log records every media event with user, file name, IP address, and timestamp. REST API protection closes the Gutenberg and headless bypass that most similar plugins miss entirely. And a critical bug affecting excluded users in the grid view has been resolved.
🌟 Features
Core restriction
✅ Restrict media library access by user role
✅ Works in both grid view (media modal) and list view (Media Library screen)
✅ Administrators always have full access — no configuration needed
✅ Exclude specific users from restriction — grant bypass access to trusted individuals regardless of their role
✅ REST API protection — /wp/v2/media respects the same restriction rules, covering Gutenberg and headless setups
Settings & admin
✅ Modern tabbed settings page — Roles & Users and Activity Log in one place
✅ Instant role toggles — enable or disable restriction per role without a page reload
✅ Live status badges on each role card showing user count and restriction state
✅ Header summary showing how many roles are restricted and users excluded
Activity log
✅ Tracks all upload, delete, and view events automatically
✅ Records user, file name, IP address, and timestamp for every event
✅ Displays the latest 30 entries in a clean admin table
✅ One-click clear log with confirmation prompt
Compatibility & clean code
✅ Works with default WordPress roles and any custom roles (LMS, membership, WooCommerce, etc.)
✅ Compatible with Gutenberg block editor, classic editor, and headless setups
✅ Restricted users can still upload and manage their own files — restriction is visibility only
✅ No impact on existing media files — the plugin never modifies or deletes files
✅ Clean uninstall — removes all plugin options and database tables on deletion
🧠 Use Cases
Online Learning Platforms (LMS):
Prevent instructors from seeing or using each other’s uploaded course files. Exclude trusted course managers so they retain full access.
Client Sites & Freelancers:
Limit clients to only their own media uploads, keeping your own assets private and the library uncluttered.
Multi-Author Blogs:
Ensure each contributor only sees their own images and uploads. Exclude editors who need to manage all media.
Membership or Community Sites:
Allow members to upload profile or content images but restrict them from browsing admin or other members’ uploads.
Agencies & Teams:
Give designers and content editors restricted media access while allowing project leads or account managers full visibility.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon