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

15 lines
424 B
PHP
Raw Permalink Normal View History

2018-03-21 18:19:20 +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();
}
}