My Downloads Shortcode for WooCommerce
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 ef
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]
- 01Search for plugin and install it
- 02Activate the plugin through the \”Plugins\” menu in WordPress.
- 03Place the shortcode [woocommerce-my-downloads] on any page you would like.
Frequently asked questions.
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]'); ?>