Advertisement
BakerMan

Hide organizer email

Feb 19th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement