Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter("form_field_value_ambassador_hotel", "populate_hotel");
- function populate_hotel() {
- $current_user = wp_get_current_user();
- $current_user_id = $current_user->ID;
- $ambassadorhotel = bp_profile_field_data( array('user_id'=>$current_user_id,'field'=>'Hotel' ));
- return $ambassadorhotel;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement