Remove Google Profile from "the_content" and output later
-
i would like to remove the Google+ Profile filter from “the_content” and output it in a different section of my site.
i was able to remove the sharedaddy “Likes” and “Share” with this
remove_filter( ‘the_content’, ‘sharing_display’,19 );
remove_filter( ‘the_excerpt’, ‘sharing_display’,19 );
if ( class_exists( ‘Jetpack_Likes’ ) ) {
remove_filter( ‘the_content’, array( Jetpack_Likes::init(), ‘post_likes’ ), 30, 1 );
}and output them with this
$get_jet = ”;
if ( function_exists( ‘sharing_display’ ) ) {
$get_jet = sharing_display();
}
if ( class_exists( ‘Jetpack_Likes’ ) ) {
$custom_likes = new Jetpack_Likes;
$get_jet .= $custom_likes->post_likes( ” );
}
if($get_jet){
echo ‘<div class=”wrapper share”>’;
echo $get_je;
echo ‘</div>’;
}the filter i need to override is declared here on line 24 https://github.com/wp-plugins/jetpack/blob/master/modules/gplus-authorship.php
add_filter( ‘the_content’, array( $this, ‘post_output_wrapper’ ), 22, 1 );
i need to remove that, then call “post_output_wrapper” later
i am not having any success.
thank you for your help
- The topic ‘Remove Google Profile from "the_content" and output later’ is closed to new replies.