Created
May 12, 2015 21:55
-
-
Save jamigibbs/d17f29f25bb0ad80bb99 to your computer and use it in GitHub Desktop.
TEC: Add Jetpack sharing to individual events
This file contains hidden or 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
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