Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor FARAZFRANK

    (@farazfrank)

    Hi Ron,

    Could you more elaborate your use case?

    Thanks
    Frank

    Thread Starter ron24g

    (@ron24g)

    hi farazfrank i put in this line of code so that when a logged in user makes an appointment there info will be in the fields in the second cal modal

    <?php
    //Get Current User Login
    global $current_user;
    $current_user = wp_get_current_user();
    $cunamef = $current_user->user_firstname;
    $cunamel = $current_user->user_lastname;
    $cumail = $current_user->user_email;
    $cuphone = $current_user->phone1;
    ?>

    and added this value for user info for each field, respectively.

    value=”<?php echo $cunamef, $cunamel; ?>” readonly

    Plugin Contributor FARAZFRANK

    (@farazfrank)

    Is it working for you?

    If yes, then Great! you did it correctly.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘auto populate form (2nd modal) with current user info’ is closed to new replies.