Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('em_location_output_placeholder','my_em_location_owner_placeholders',1,3);
- function my_em_location_owner_placeholders($replacement, $EM_Location, $result){
- switch( $result ){
- case '#_LOCATIONAUTHOR':
- $user_info = get_userdata($EM_Location->location_owner);
- $replacement = $user_info->display_name;
- break;
- }
- return $replacement;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement