Title: My Downloads Shortcode for WooCommerce
Author: Matt Pramschufer
Published: <strong>2014 年 1 月 2 日</strong>
Last modified: 2021 年 7 月 13 日

---

搜索插件

![](https://ps.w.org/woocommerce-my-downloads-shortcode/assets/banner-772x250.png?
rev=2300098)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/woocommerce-my-downloads-shortcode/assets/icon-256x256.png?
rev=2300098)

# My Downloads Shortcode for WooCommerce

 作者：[Matt Pramschufer](https://profiles.wordpress.org/mattpramschufer/)

[下载](https://downloads.wordpress.org/plugin/woocommerce-my-downloads-shortcode.zip)

 * [详情](https://cn.wordpress.org/plugins/woocommerce-my-downloads-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/woocommerce-my-downloads-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/woocommerce-my-downloads-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/woocommerce-my-downloads-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/)

## 描述

This plugin requires WooCommerce.

When developing a WooCommerce site I realized there was not a shortcode for displaying
the logged in users available downloads outside of the My Account page. So I developed
this simple plugin which adds the short code [woocommerce-my-downloads]. It is simple
and effective. It displays the Date of the order and the file name in an unordered
list.

** Note: WooCommerce 5.8.x Compatible

### Usage

#### Shortcode for displaying all downloads

    ```
    [woocommerce-my-downloads]
    ```

#### Shortcode for single product download button

    ```
    [woocommerce-my-downloads-button id=PRODUCT_ID]
    ```

## 安装

 1. Search for plugin and install it
 2. Activate the plugin through the \”Plugins\” menu in WordPress.
 3. Place the shortcode [woocommerce-my-downloads] on any page you would like.

## 常见问题

### Can I change the template?

For right now, you can change the template by editing the /tpl/my-downloads.php 
file.

### How do I put my downloads shortcode in my template with PHP?

Open your template file and the put in `<?php do_shortcode('[woocommerce-my-downloads]');?
>`

## 评价

![](https://secure.gravatar.com/avatar/189e88f8d314e42cdeb971e73e71d86b685d43189889fe0fd797eed5e488c1e9?
s=60&d=retro&r=g)

### 󠀁[Nice plugin](https://wordpress.org/support/topic/nice-plugin-5081/)󠁿

 [vasea101](https://profiles.wordpress.org/vasea101/) 2024 年 1 月 22 日

Nice plugin, can you add a Product title too ? Thx!

![](https://secure.gravatar.com/avatar/20b5bd3c24be626fe30f4bc6208fd5ce104425d0fd365290d34e9af6bb337a89?
s=60&d=retro&r=g)

### 󠀁[Very good plugin](https://wordpress.org/support/topic/very-good-plugin-2175/)󠁿

 [Anonymous User 18719950](https://profiles.wordpress.org/anonymized-18719950/) 
2021 年 5 月 10 日

Thanks for this very helpful plugin! And thank you Matt for your quickly response
and help! Support 1a+ 🙂

![](https://secure.gravatar.com/avatar/452d4ca722f2c86a504df756d47897c826056333c50b633e83fb2842699ba8b7?
s=60&d=retro&r=g)

### 󠀁[Great plugin and good support](https://wordpress.org/support/topic/very-useful-plugin-519/)󠁿

 [Manjunathpmf](https://profiles.wordpress.org/manjunathpmf/) 2017 年 6 月 19 日

The plugin is very handy and is of great help if you have many downloadable products
or many downloads in a single product. The support is good too. Thank author for
this fantastic plugin.

![](https://secure.gravatar.com/avatar/d5b49ac9fcf64edcd9933428b81bcd41e33414b00b2e67a30efaa1ec382fc49f?
s=60&d=retro&r=g)

### 󠀁[Awesome Stuff!](https://wordpress.org/support/topic/awesome-stuff-23/)󠁿

 [WooSociety](https://profiles.wordpress.org/woosociety/) 2017 年 2 月 8 日

Brilliant work, exactly what we needed for our site WooSociety!

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/reviews/)

## 贡献者及开发者

「My Downloads Shortcode for WooCommerce」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Matt Pramschufer ](https://profiles.wordpress.org/mattpramschufer/)
 *   [ emoxie ](https://profiles.wordpress.org/emoxie/)

[帮助将「My Downloads Shortcode for WooCommerce」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/woocommerce-my-downloads-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/woocommerce-my-downloads-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/woocommerce-my-downloads-shortcode/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/woocommerce-my-downloads-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/woocommerce-my-downloads-shortcode/)。

## 更新日志

#### 1.8.0

 * BUGFIX – Updated templates to make it so it would use the specific download name
   instead of just the download label.

#### 1.7.0

 * UPDATE – Removed PHP Warnings when downloads were unlimited
 * UPDATE – Confirmed working with WooCommerce 4.5x and WordPress 5.5x
 * UPDATE – Added in infinity symbol to indicate unlimited downloads.

#### 1.6.0

 * General Code Cleanup
 * Insured compatibility with latest versions of WooCommerce and WordPress
 * Added in defaults when just setting up
 * Change name to adhere to trademark guidelines

#### 1.5

 * Wrapped $woocommerce in check statement for corner cases when woocommerce is 
   not loaded and fatal error occurs when saving page/post with shortcode.

#### 1.4

 * Fixed php warnings for undefined variables
 * Fixed deprecated calls
 * Moved away from the global $woocommerce and changed to WC()
 * Cleaned up various parts of code.

#### 1.3

 * Added in new shortcode for single download button
 * Options Include:
    ** Toggle Show Date on Template ** Ability to specify label
   on button ** Ability to add specific classes to button

#### 1.2

 * Confirmed working with WordPress 4.3 and WooCommerce 2.4.5
 * Added in a setting panel. Go into Admin->Settings->WooCommerce My Downloads
 * Options Include:
    ** Available Downloads Heading ** Content if user has no downloads.**
   Show Downloads Remaining on Template ** Show Available Download Count on Template

#### 1.1

 * WordPress 3.9 Compatible
 * WooCommerce 2.1 Compatible

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.8.0**
 *  最后更新：**5 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  语言
 * [English (US)](https://wordpress.org/plugins/woocommerce-my-downloads-shortcode/)
 * 标签
 * [downloads](https://cn.wordpress.org/plugins/tags/downloads/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/woocommerce-my-downloads-shortcode/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/reviews/)

## 贡献者

 *   [ Matt Pramschufer ](https://profiles.wordpress.org/mattpramschufer/)
 *   [ emoxie ](https://profiles.wordpress.org/emoxie/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/woocommerce-my-downloads-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mattpram%40gmail%2ecom)