• Hello!

    Can I set default values from the “wp_usermeta” table”?
    If you can please tell me how!

    I know that you can use “current_user->user_login” and so on, but me need datas wits “wp_usermeta”

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

    (@xnau)

    It’s possible. First, define the field that will receive the meta values.

    Then, you’d need to write your own code to save the meta values to the PDB record. Use the pdb-after_submit_signup action to trigger your code. The action gets the submitted data, which you will need to use to identify which WP user you’re getting the meta values from.

    Your action handler can then use the Participants_Db::write_participant method to update the record with the meta values.

    Plugin Author xnau webdesign

    (@xnau)

    Another approach is to use the pdb-dynamic_value filter to set up your own values for the dynamic hidden field. With code like that, you’d be able to include the hidden fields for your meta values just like the ones the plugin has built in.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default values’ is closed to new replies.