Skip to content

Instantly share code, notes, and snippets.

@jamigibbs
Created May 12, 2015 21:55
Show Gist options
  • Save jamigibbs/d17f29f25bb0ad80bb99 to your computer and use it in GitHub Desktop.
Save jamigibbs/d17f29f25bb0ad80bb99 to your computer and use it in GitHub Desktop.
TEC: Add Jetpack sharing to individual events
function tweakecp_add_jpshare() {
if ( function_exists( 'sharing_display' ) ) {
$shares = sharing_display( '', true );
$assess = trim($shares);
if ( empty($assess) ) $shares = ' sharing_display() is not returning anything ';
}
return $shares;
}
add_action( 'tribe_events_single_event_after_the_content', 'tweakecp_add_jpshare' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment