Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Adds JP sharing buttons before the EDD purchase button on single download pages
* Adds sharing buttons before purchase button
* Tutorial:
function add_edd_share_buttons() {
if ( function_exists( 'sharing_display' ) && is_singular( 'download' ) ) {
remove_filter( 'the_content', 'sharing_display', 19 );
remove_filter( 'the_excerpt', 'sharing_display', 19 );
echo sharing_display();
add_action( 'edd_purchase_link_top', 'add_edd_share_buttons' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment