SHOW:
|
|
- or go back to the newest paste.
1 | function tweakecp_add_jpshare( $after ) { | |
2 | ||
3 | if ( function_exists( 'sharing_display' ) ) { | |
4 | $shares = sharing_display( '', true ); | |
5 | ||
6 | $assess = trim($shares); | |
7 | if ( empty($assess) ) $shares = ' sharing_display() is not returning anything '; | |
8 | } | |
9 | - | echo $after; |
9 | + | else { |
10 | $shares = " Jetpack\'s sharing_display() function has not been defined "; | |
11 | } | |
12 | ||
13 | $after .= $shares; | |
14 | return $after; | |
15 | } | |
16 | ||
17 | add_filter( 'tribe_events_after_html', 'tweakecp_add_jpshare' ); |