This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_filter( 'the_content', 'sharing_display', 19 ); | |
remove_filter( 'the_excerpt', 'sharing_display', 19 ); | |
add_filter( 'the_content', 'share_buttons_above_post', 19 ); | |
add_filter( 'the_excerpt', 'share_buttons_above_post', 19 ); | |
function share_buttons_above_post( $content = '' ) { | |
if ( function_exists( 'sharing_display' ) ) { | |
return sharing_display() . $content; | |
} |