diff --git a/gumroad/README.txt b/gumroad/README.txt
index 16ea74f..6fded27 100644
--- a/gumroad/README.txt
+++ b/gumroad/README.txt
@@ -2,8 +2,8 @@
Contributors: karloscarweber, pderksen, nickyoung87, gumroad
Tags: gumroad, gumroad product pages, gumroad overlay, gumroad embed, ecommerce, e-commerce, pdf, javascript, overlay, embed
Requires at least: 3.9
-Tested up to: 4.9.6
-Stable tag: 2.1
+Tested up to: 5.7.1
+Stable tag: 3.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -11,21 +11,23 @@ Make your Gumroad products available for purchase right within WordPress.
== Description ==
-This plugin lets you embed Gumroad into your website, using our Overlay and Embed widgets: https://gumroad.com/widgets
+This plugin lets you embed Gumroad into your website, using our Overlay and Embed widgets: https://gumroad.com/widgets.
Zero coding knowledge is required. Once installed, all links to Gumroad will automatically open the Gumroad Overlay (lightbox popup).
-For more information on how this plugin works, you can see a video on our Overlay here: https://www.youtube.com/watch?v=u80Ey6lSRyE
+For more information on how this plugin works, you can see a video on our Overlay here: https://www.youtube.com/watch?v=u80Ey6lSRyE.
You can also use shortcodes:
-Basic overlay example: `[gumroad id="DviQY"]`
+Basic overlay example: `[gumroad url="https://gumroad.com/l/DviQY"]`
-Basic embed example: `[gumroad id="GAPdj" type="embed"]`
+Basic embed example: `[gumroad url="https://gumroad.com/l/GAPdj" type="embed"]`
-Overlay that will automatically show the payment form: `[gumroad id="DviQY" text="Purchase Item" wanted="true"]`
+Overlay that will automatically show the payment form: `[gumroad url="https://gumroad.com/l/DviQY" text="Purchase Item" wanted="true"]`
-The ID ("GAPdJ") is the same as your Gumroad product URL ("gumroad.com/l/GAPdJ"). See the full documentation in Settings > Gumroad after the plugin is activated.
+Overlay for an affiliated product: `[gumroad url="https://gumroad.com/a/919237747/llNDe" type="overlay"]`
+
+See the full documentation in Settings > Gumroad after the plugin is activated.
== Installation ==
@@ -69,6 +71,10 @@ See the official Gumroad [overlay](https://gumroad.com/overlay) or [embed](https
== Changelog ==
+= 3.0.0 - April 30, 2021 =
+
+* Add support for specifying both regular and affiliated product URLs in Gumroad Block as well as short codes.
+
= 1.2.4 - January 30, 2019 =
* Add Gutenberg Blocks
diff --git a/gumroad/assets/images/gumroad-wp-007.png b/gumroad/assets/images/gumroad-wp-007.png
new file mode 100644
index 0000000..7016aed
Binary files /dev/null and b/gumroad/assets/images/gumroad-wp-007.png differ
diff --git a/gumroad/dist/blocks.build.js b/gumroad/dist/blocks.build.js
index 7d76a48..2ec8551 100644
--- a/gumroad/dist/blocks.build.js
+++ b/gumroad/dist/blocks.build.js
@@ -1 +1 @@
-!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(2),u=(n.n(l),function(){function e(e,t){for(var n=0;n Open the Editor and either type Using Shortcodes
- For version 5.0:
+ For WordPress version 5.0:
/
or click on the plus icon and then choose to add a shortcode.
With the Shortcode Block you can use shortcodes normally like you would in version 4.9.
+With the Shortcode Block you can use shortcodes normally like you would in WordPress version 4.9.
- +
-Use the shortcode [gumroad id="DviQY"]
to add a normal link (anchor tag) to a Gumroad product with the text "I want this!". Clicking this link will not trigger the overlay.
+
Use the shortcode [gumroad url="https://gumroad.com/l/DviQY"]
to add a normal link (anchor tag) to a Gumroad product with the text "I want this!". Clicking this link will not trigger the overlay.
-
Use the shortcode [gumroad id="DviQY" button="true"]
to add a button to a Gumroad product. This button will be purely cosmetic.
+
Use the shortcode [gumroad url="https://gumroad.com/l/DviQY" button="true"]
to add a button to a Gumroad product. This button will be purely cosmetic.
-
Use the shortcode [gumroad id="DviQY" type="overlay"]
to add a link to a Gumroad product that will open in an overlay.
Use the shortcode [gumroad url="https://gumroad.com/l/DviQY" type="overlay"]
to add a link to a Gumroad product that will open in an overlay.
Use the shortcode [gumroad id="GAPdj" type="embed"]
to add an embedded Gumroad product.
Use the shortcode [gumroad url="https://gumroad.com/l/GAPdj" type="embed"]
to add an embedded Gumroad product.
Similarly,
+ +Use the shortcode [gumroad url="https://gumroad.com/a/919237747/llNDe" type="overlay"]
to add a link to an affiliated Gumroad product that will open in an overlay.
Use the shortcode [gumroad url="https://gumroad.com/a/919237747/llNDe" type="embed"]
to add an embedded affiliated Gumroad product.
[gumroad id="DviQY" button="true" type="overlay" text="Purchase Item" wanted="true"]
[gumroad url="https://gumroad.com/l/DviQY" button="true" type="overlay" text="Purchase Item" wanted="true"]
You can forego using shortcodes entirely, and links to Gumroad products will automatically trigger the overlay. Embed code copied from the Gumroad product widget will also work without including the script tag:
+You can forego using shortcodes entirely, and links to Gumroad products will automatically trigger the overlay. Embed code copied from the Gumroad product widget will also work without including the script tag:
- <div class="gumroad-product-embed" data-gumroad-product-id="DviQY"><a href="https://gumroad.com/l/qLlJJ">Loading...</a></div>
+ <div class="gumroad-product-embed"><a href="https://gumroad.com/l/DviQY">Loading...</a></div>