Created
April 22, 2022 07:50
-
-
Save bradleysa/d401339205f9f695e0d7a0f085ebaa5f to your computer and use it in GitHub Desktop.
WC: Social Media Icons on Product Pages
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
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(); | |
} | |
} | |
/** http://speakinginbytes.com/2014/12/social-media-icons-woocommerce-products/ **/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment