• Hi Xnau

    A thousand thanks for a great plugin!

    i’m using the plugin together with Woocommerce and Groups, to give paying users access to get their info in the database. Works like a charm, and it was just what i needed.

    However it would be nice to enhance the user experience by grabbing the info from the WordPress user the customer creates when purchasing the access, and put it as the default for certain fields on the sign-up page.

    how can i do this?

    Is there an easy way to get the info from the current user and place it in the default field?

    https://wordpress.org/plugins/participants-database/

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    This is certainly possible, but you’ll need to be pretty comfortable with some PHP to create a custom template. In the loop, after the $this->the_field() you would place an if statement that checks for a signup form field that might match a WP user field. Then, if it’s found, get the WP user value and set the signup field value: $this->field->value = $current_user->{$value}

    There are several ways to do this, of course, but that should get you started.

    How to Create Custom Templates

Viewing 1 replies (of 1 total)

The topic ‘Autofill pdb_signup fields’ is closed to new replies.