{"id":27018,"date":"2014-01-02T14:23:36","date_gmt":"2014-01-02T14:23:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/woocommerce-my-downloads-shortcode\/"},"modified":"2021-07-13T14:24:58","modified_gmt":"2021-07-13T14:24:58","slug":"woocommerce-my-downloads-shortcode","status":"publish","type":"plugin","link":"https:\/\/roh.wordpress.org\/plugins\/woocommerce-my-downloads-shortcode\/","author":89986,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.8.0","stable_tag":"trunk","tested":"5.8.13","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"My Downloads Shortcode for WooCommerce","header_author":"Pramadillo","header_description":"","assets_banners_color":"005560","last_updated":"2021-07-13 14:24:58","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_donations&business=mattpram%40gmail%2ecom","header_plugin_uri":"http:\/\/wordpress.emoxie.com\/woocommerce-my-downloads\/","header_author_uri":"http:\/\/pramadillo.com","rating":5,"author_block_rating":0,"active_installs":100,"downloads":9058,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":7},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2300098,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2300098,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2300098,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2300098,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[5440,80,286],"plugin_category":[43,45],"plugin_contributors":[195361,81534],"plugin_business_model":[],"class_list":["post-27018","plugin","type-plugin","status-publish","hentry","plugin_tags-downloads","plugin_tags-shortcode","plugin_tags-woocommerce","plugin_category-customization","plugin_category-ecommerce","plugin_contributors-emoxie","plugin_contributors-mattpramschufer","plugin_committers-mattpramschufer"],"banners":{"banner":"https:\/\/ps.w.org\/woocommerce-my-downloads-shortcode\/assets\/banner-772x250.png?rev=2300098","banner_2x":"https:\/\/ps.w.org\/woocommerce-my-downloads-shortcode\/assets\/banner-1544x500.png?rev=2300098","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/woocommerce-my-downloads-shortcode\/assets\/icon-128x128.png?rev=2300098","icon_2x":"https:\/\/ps.w.org\/woocommerce-my-downloads-shortcode\/assets\/icon-256x256.png?rev=2300098","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin requires WooCommerce.<\/p>\n\n<p>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.<\/p>\n\n<p>** Note: WooCommerce 5.8.x Compatible<\/p>\n\n<h3>Usage<\/h3>\n\n<h4>Shortcode for displaying all downloads<\/h4>\n\n<pre><code>[woocommerce-my-downloads]\n<\/code><\/pre>\n\n<h4>Shortcode for single product download button<\/h4>\n\n<pre><code>[woocommerce-my-downloads-button id=PRODUCT_ID]\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Search for plugin and install it<\/li>\n<li>Activate the plugin through the \\\"Plugins\\\" menu in WordPress.<\/li>\n<li>Place the shortcode [woocommerce-my-downloads] on any page you would like.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='can%20i%20change%20the%20template%3F'><h3>Can I change the template?<\/h3><\/dt>\n<dd><p>For right now, you can change the template by editing the \/tpl\/my-downloads.php file.<\/p><\/dd>\n<dt id='how%20do%20i%20put%20my%20downloads%20shortcode%20in%20my%20template%20with%20php%3F'><h3>How do I put my downloads shortcode in my template with PHP?<\/h3><\/dt>\n<dd><p>Open your template file and the put in <code>&lt;?php do_shortcode('[woocommerce-my-downloads]'); ?&gt;<\/code><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.8.0<\/h4>\n\n<ul>\n<li>BUGFIX - Updated templates to make it so it would use the specific download name instead of just the download label.<\/li>\n<\/ul>\n\n<h4>1.7.0<\/h4>\n\n<ul>\n<li>UPDATE - Removed PHP Warnings when downloads were unlimited<\/li>\n<li>UPDATE - Confirmed working with WooCommerce 4.5x and Wordpress 5.5x<\/li>\n<li>UPDATE - Added in infinity symbol to indicate unlimited downloads.<\/li>\n<\/ul>\n\n<h4>1.6.0<\/h4>\n\n<ul>\n<li>General Code Cleanup<\/li>\n<li>Insured compatibility with latest versions of WooCommerce and Wordpress<\/li>\n<li>Added in defaults when just setting up<\/li>\n<li>Change name to adhere to trademark guidelines<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Wrapped $woocommerce in check statement for corner cases when woocommerce is not loaded and fatal error occurs when saving page\/post with shortcode.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Fixed php warnings for undefined variables<\/li>\n<li>Fixed deprecated calls<\/li>\n<li>Moved away from the global $woocommerce and changed to WC()<\/li>\n<li>Cleaned up various parts of code.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added in new shortcode for single download button<\/li>\n<li>Options Include:\n** Toggle Show Date on Template\n** Ability to specify label on button\n** Ability to add specific classes to button<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Confirmed working with Wordpress 4.3 and WooCommerce 2.4.5<\/li>\n<li>Added in a setting panel.  Go into Admin-&gt;Settings-&gt;WooCommerce My Downloads<\/li>\n<li>Options Include:\n** Available Downloads Heading\n** Content if user has no downloads.\n** Show Downloads Remaining on Template\n** Show Available Download Count on Template<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Wordpress 3.9 Compatible<\/li>\n<li>WooCommerce 2.1 Compatible<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Creates a shortcode which can be displayed on any page to show users WooCommerce available downloads.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27018"}],"author":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mattpramschufer"}],"wp:attachment":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27018"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27018"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27018"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27018"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27018"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}