Advertisement
Guest User

Populate Hotel

a guest
May 27th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. add_filter("form_field_value_ambassador_hotel", "populate_hotel");
  2. function populate_hotel() {
  3.     $current_user = wp_get_current_user();
  4.     $current_user_id = $current_user->ID;
  5.     $ambassadorhotel = bp_profile_field_data( array('user_id'=>$current_user_id,'field'=>'Hotel' ));
  6.     return $ambassadorhotel;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement