Created
November 10, 2012 00:01
-
-
Save mjangda/4049138 to your computer and use it in GitHub Desktop.
Add Jetpack share buttons to the top of the content
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
<?php | |
add_filter( 'the_content', 'x_add_sharing_to_content_top' ); | |
function x_add_sharing_to_content_top( $content ) { | |
if ( function_exists( 'sharing_display') ) | |
$content = sharing_display() . $content; | |
return $content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment