Skip to content

Instantly share code, notes, and snippets.

@BFTrick
Created December 1, 2014 22:18
Show Gist options
  • Save BFTrick/4cde4e828b732707462a to your computer and use it in GitHub Desktop.
Save BFTrick/4cde4e828b732707462a to your computer and use it in GitHub Desktop.
add_action( 'woocommerce_share', 'patricks_woocommerce_social_share_icons', 10 );
function patricks_woocommerce_social_share_icons() {
if ( function_exists( 'sharing_display' ) ) {
remove_filter( 'the_content', 'sharing_display', 19 );
remove_filter( 'the_excerpt', 'sharing_display', 19 );
echo sharing_display();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment