Advertisement
eventsmanager

Location Author

Mar 13th, 2013
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. add_filter('em_location_output_placeholder','my_em_location_owner_placeholders',1,3);
  2. function my_em_location_owner_placeholders($replacement, $EM_Location, $result){
  3. switch( $result ){
  4. case '#_LOCATIONAUTHOR':
  5. $user_info = get_userdata($EM_Location->location_owner);
  6. $replacement = $user_info->display_name;
  7. break;
  8. }
  9.  
  10. return $replacement;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement