daily pastebin goal
11%
SHARE
TWEET

Hide organizer email

BakerMan Feb 19th, 2014 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * This is a simple example of hiding organizer email addresses.
  3.  *
  4.  * You could add to this and stop an actual link element from being
  5.  * formed and/or return an empty string instead.
  6.  */
  7. add_filter( 'tribe_get_organizer_email', 'hide_organizer_emails' );
  8.  
  9. function hide_organizer_emails( $email ) {
  10.         $email = str_replace( '@', ' [at] ', $email );
  11.         $email = str_replace( '.', ' [dot] ', $email );
  12.         return $email;
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top