开发者 | naa986 |
---|---|
更新时间 | 2024年11月13日 07:18 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 4.9 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip"]
here, url is a shortcode parameter that you need to replace with the actual URL to your digital file
You can also specify additional optional parameters in the shortcode to customize the free download button.
Button Text
By default the text for the download button is "Download Now". But you can choose to modify the text using the "text" parameter.
[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download"]
Button Width
By default the width for the download button is "153". But you can choose to modify it using the "width" parameter.
[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download" width="100"]
Button Height
By default the height for the download button is "41". But you can choose to modify it using the "height" parameter.
[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" text="Free Download" width="100" height="50"]
Download in a new window
By default the download starts in the same window. But you can choose to modify it using the "target" parameter.
[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" target="_blank"]
(opens the download in a new window)
Force File Download
Usually when a digital file is recognised by the browser it does not prompt for download. The file just opens in the browser instead. You can choose to modify this behaviour using the force_dl
parameter in the shortcode.
[easy_media_download url="http://example.com/wp-content/uploads/myfile.mp3" force_dl="1"]
Download Button Templates
Easy Media Download comes with 21 different download button templates. All you need to do is specify the style and the button will look just like it. For example:
[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" color="red_darker"]
class
parameter.
[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" class="myclass"]
You can specify multiple CSS classes in the shortcode.
[easy_media_download url="http://example.com/wp-content/uploads/myfile.zip" class="myclass1 myclass2 myclass3"]
Embedding a Donation Button for Free Download
You can accept donations from users visiting your site for your free downloads. Simply use the following shortcode with your PayPal email address in it.
[emd_donation email="abc123@hotmail.com"]
Donation Currency
The default currency is "USD". But you can also accept payments in your preferred currency using the "currency" parameter.
[emd_donation email="abc123@hotmail.com" currency="CAD"]
(This will set the currency to Canadian Dollar)
Payment Page Language
The default locale for the payment page is "US". But you can set it to your preferred language using the "locale" parameter.
[emd_donation email="abc123@hotmail.com" locale="BE"]
(This will set the locale to Belgium)
Donation Button Image
You can customize the donation button by specifying your preferred image in the shortcode.
[emd_donation email="abc123@hotmail.com" image="http://example.com/wp-content/uploads/images/donate.jpg"]
Digital Download Tracking
Easy Media Download is integrated with the Google Analytics plugin. It allows you to see how many times a particular file has been downloaded in real time from your Google Analytics account.
Languages
Easy Media Download can be translated into your languages. Currently it supports the following languages:
Yes.
Yes.
Yes.