Advertisement
eventsmanager

Location Author

Mar 13th, 2013
137
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement