Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adds JP sharing buttons after the EDD download title
/**
* Adds sharing buttons after the download title
* Tutorial: http://www.sellwithwp.com/add-social-sharing-buttons-to-easy-digital-downloads/
**/
function add_edd_share_buttons() {
if ( function_exists( 'sharing_display' ) ) {
remove_filter( 'the_content', 'sharing_display', 19 );
remove_filter( 'the_excerpt', 'sharing_display', 19 );
echo sharing_display();
}
}
add_action( 'edd_before_download_content', 'add_edd_share_buttons' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment