Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add Jetpack share buttons to the top of the content
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
You can’t perform that action at this time.