This repository has been archived on 2022-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
Oldphaloskepsis/plugins/jetpack/3rd-party/woocommerce.php

15 lines
424 B
PHP
Raw Normal View History

2017-01-12 23:10:07 +00:00
<?php
add_action( 'woocommerce_share', 'jetpack_woocommerce_social_share_icons', 10 );
/*
* Make sure the social sharing icons show up under the product's short description
*/
function jetpack_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();
}
}