Show a download’s featured image with the [purchase_link] shortcode

A customer on Easy Digital Downloads’ WordPress support forums asked if it was possible to show a download’s featured image any time they used the [[purchase_link]] shortcode.

Copy and paste the following into your child theme’s functions.php or custom plugin:

Leave a Reply

Your email address will not be published. Required fields are marked *