Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'loop_start', 'pix_remove_sharedaddy' );
- add_action( 'the_content', 'pix_append_sharedaddy' );
- function pix_remove_sharedaddy() {
- remove_filter( 'the_content', 'sharing_display',19 );
- if ( class_exists( 'Jetpack_Likes' ) ) {
- remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
- }
- }
- function pix_append_sharedaddy($content) {
- if ( function_exists( 'sharing_display' ) ) {
- $content .= sharing_display( '', false );
- }
- if ( class_exists( 'Jetpack_Likes' ) ) {
- $custom_likes = new Jetpack_Likes;
- $content .= $custom_likes->post_likes( '' );
- }
- return $content;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement