
內容簡介
此外掛可限制特定媒體檔案僅供已登入用戶下載,提供簡單的介面,無多餘功能,確保檔案安全。
【主要功能】
• 限制檔案下載僅對已登入用戶開放
• 自訂下載網址,便於管理與更新
• 檔案存儲於受保護的目錄中
• 支援將下載項目分類以便管理
• 可追蹤下載次數以便分析
外掛標籤
開發者團隊
② 後台搜尋「Downloads for logged in users」→ 直接安裝(推薦)
原文外掛簡介
Limit access to specified media files to logged in users. Very simple interface with no unnecessary features.
Create a new ‘Download’ post, give it a title and upload a file for it. Files are stored in a protected directory under wp-content/uploads. This prevents anyone from accessing a file, even if they have the url.
Access is via a custom download url that can be copied from the plugin’s admin screen.
Downloads can be assigned categories though these are for site admin organisation use and are not used in the custom url.
The download url is not the url of the file; it is a custom url with the post ID. This allows you update the downloadable file without having to change the download url.
The plugin is enabled for translation.
If you find a bug, have a feature request or want to translate the plugin, please create an issue via the plugin’s GitHub repository.
You can also contact me on my website.
ToDo
Add a feature to move items from Media Library to private downloads CPT – possible ‘Pro’ option.
Have a clear UX for when the post does not exist.
Developer information
The access can be changed with the ‘liudownload_check_perms‘ filter, returning true to allow the download.
For example:
