Advertisement
BakerMan

Untitled

Nov 28th, 2013
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     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' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement