內容簡介
### 簡單、易用且輕量的下載管理外掛,具有密碼保護功能
- **功能特色**
- 這個下載管理外掛設計為輕巧且易於使用。
- 基本上所有下載都受密碼保護,這也防止了被機器人等下載。
- 下載資料將創建為一個簡短碼片和下載URL。
- 只要用戶具有管理權限,就可以使用媒體上傳工具上傳各種類型的下載檔案。
- **由附加功能新增的功能**
- 生成有過期日期的密碼。
- 用於未在官方 WordPress 網站上註冊的 WordPress 主題和外掛的資訊和更新管理。
- **如何使用**
- 如果您想要從您網站的文章頁面等下載,請在內容中加入短碼 [celtisdl_download id=”123″]。
- 如果您想通過電子郵件等方式發送下載資訊,請將下載URL和密碼發送給收件人。
- 雖然無法為下載按鈕設定不同風格的功能,但可以使用過濾器鉤子更改按鈕的風格。
- 或者,如果您使用區塊編輯器,可以將下載URL設置為按鈕區塊的鏈接,並在區塊編輯器中設定按鈕風格。
- 本外掛需要下載密碼,但有兩種跳過此要求的方法:
- 例如,如果您想要從結帳頁面等頁面下載而不需要密碼,您可以註冊該結帳頁面的URL,並且無需輸入密碼即可下載。
- 登錄用戶可以在具有注冊用戶功能許可權的情況下免輸入密碼下載。
- **請參閱以下頁面以獲得更詳細的資訊**
- [Documentation](documentation-link)
- [customize](customize-link)
- 主要自訂的過濾器鉤子
- 短碼下載按鈕自訂風格過濾器鉤子
- apply_filters( ‘celtisdl_download_button_custom’, $html, $post )
- 密碼表單自訂風格過濾器鉤子
- apply_filters( ‘celtisdl_password_form_custom’, $output, $post )
- 日誌視圖自訂過濾器鉤子
- apply_filters( ‘celtisdl_stat_content_custom’, $shtml, $stat )
- apply_filters( ‘celtisdl_log_content_custom’, $shtml, $log )
### 問題與答案
1. 這個下載管理外掛具有哪些基本功能?
- 其中一個功能是所有下載檔案都受密碼保護,以避免機器人等下載。
- 它可以創建一個短碼和下載URL來作為下載資料。
2. 使用這個外掛時,如何設定下載元件的按鈕風格?
- 雖然無法直接設定按鈕風格,但可以使用過濾器鉤子來更改按鈕的樣式。
3. 有哪兩種方法可以跳過此外掛要求的下載密碼?
- 第一種方法是註冊需要跳過密碼的下載頁面的URL。
- 另一種方法是如果用戶是已登錄用戶且具有注冊用戶功能許可權,則可以免輸入密碼下載。
外掛標籤
開發者團隊
② 後台搜尋「Simple Download with password」→ 直接安裝(推薦)
原文外掛簡介
Simple, easy, lightweight download manager with password protection
Features
This download management plugin is designed to be light and easy to use.
Basically all downloads are password protected. This also prevents downloads by bots etc.
A single shortcode and download URL are created as the download data.
All types of files for download can be uploaded with the Media Uploader if the user has administrative privileges.
Functions added by addons
Generate a password with an expiration date.
Information and Update manager for WordPress themes and plugins not registered on the WordPress official website.
How to use
If you want to download from your own site’s posting page, etc., write the shortcode [celtisdl_download id=”123″] in the content.
If you want to send download information via email, etc., send the download URL and password to the recipient.
There is no functionality to style the download button in various ways, but you can use filter hooks to change the style of the button.
Alternatively, if you are using a block editor, you can set the download URL in the link of the button block and set the button style in the block editor.
The plugin requires a download password, but there are two ways to bypass this requirement.
For example, if you want to download from a page such as a checkout page without requiring a password, you can register the URL of that checkout page and download without entering a password.
Logged-in users can download without entering a password if they have the registered user capability.
Please see the following page for details
Documentation
customize
Filter hooks for main customization
shortcode download button custom style filter hook
apply_filters( ‘celtisdl_download_button_custom’, $html, $post )
password form custom style filter hook
apply_filters( ‘celtisdl_password_form_custom’, $output, $post )
log view custom filter hook
apply_filters( ‘celtisdl_stat_content_custom’, $shtml, $stat )
apply_filters( ‘celtisdl_log_content_custom’, $shtml, $log )
