Title: Default Value
Last modified: June 23, 2023

---

# Default Value

 *  Resolved [Steve Fulton U.E](https://wordpress.org/support/users/ogs2017/)
 * (@ogs2017)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/default-value-18/)
 * Looking to auto populate a registered user personal information into the form
   when they are signed in and go to the page.
 * Any hints on making this happen?
 * Thanks Steve Fulton, UE
    -  This topic was modified 2 years, 11 months ago by [Steve Fulton U.E](https://wordpress.org/support/users/ogs2017/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefault-value-18%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Roland Murg](https://wordpress.org/support/users/murgroland/)
 * (@murgroland)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/default-value-18/#post-16847380)
 * Hey [@ogs2017](https://wordpress.org/support/users/ogs2017/),
 * For this, you can use the Dynamic population functionality: [https://www.wpbookingsystem.com/documentation/dynamic-form-field-population/](https://www.wpbookingsystem.com/documentation/dynamic-form-field-population/)
 * You will need to add a filter for each field you want to dynamically populate.
 * Something like this:
 *     ```wp-block-code
       // first name
       add_filter('wpbs_form_field_value_1_2', function(){
            return get_user_meta( get_current_user_id(), 'first_name', true );
       });
   
       //email
       add_filter('wpbs_form_field_value_1_3', function(){
           $current_user = wp_get_current_user();
           return $current_user->user_email;
       }); 
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Default Value’ is closed to new replies.

 * ![](https://ps.w.org/wp-booking-system/assets/icon-256x256.gif?rev=2691961)
 * [WP Booking System - Booking Calendar](https://wordpress.org/plugins/wp-booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-booking-system/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Roland Murg](https://wordpress.org/support/users/murgroland/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/default-value-18/#post-16847380)
 * Status: resolved