Created
August 23, 2014 04:05
-
-
Save amdrew/9036c9735bad72c51cb8 to your computer and use it in GitHub Desktop.
Easy Digital Downloads - Show the featured image of a download above the purchase link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function sumobi_edd_purchase_link_show_featured_image( $download_id ) { | |
echo get_the_post_thumbnail( $download_id, 'thumbnail' ); | |
} | |
add_action( 'edd_purchase_link_top', 'sumobi_edd_purchase_link_show_featured_image' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment