Advertisement
wclendining

WooCommerceSocialMediaIcons

Apr 16th, 2015
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. add_action( 'woocommerce_share', 'woocommerce_cookbook_social_share_icons', 10 );
  2. function woocommerce_cookbook_social_share_icons() {
  3.    if ( function_exists( 'sharing_display' ) ) {
  4.       remove_filter( 'the_content', 'sharing_display', 19 );
  5.       remove_filter( 'the_excerpt', 'sharing_display', 19 );
  6.       echo sharing_display();
  7.    }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement