Posted: December 5, 2017 at 4:36 am
|
Hi there, |
Hi there, We don’t have any plans to add in your own system questions into EE, but you can add custom questions to any group in EE so there’s no need. However, I’m not sure I understand how adding a system question helps add a question to the WP Registration form? Can you provide more details on what you are trying to do please? |
|
|
Hi Tony, |
No, that’s not possible. The questions system only runs within EE and the questions are assigned to a registration, at the link you provided above you don’t have an active registration so there’s nothing to link the question to. |
|
|
So Is it possible to make synchronization between system user register fields and EE custom question? |
|
|
Yes, it’s possible. You’ll find an example of this within the WP user Integration add-on, take a look in EED_WP_Users_SPCO.modules.php and the It uses the |
|
|
Tony, thank you so much for your assistance. if ( is_numeric( $question_id ) && defined( ‘EEM_Attendee::TXT_18’ ) ) { //var_dump($question_id); . the output of var_dump($id_to_use); is: string(5) “fname” Did I Miss Anything? |
You don’t need to modify core files when the function uses a hook, you can add your own function to the same hook and add details that way. However, I realized the above may not be the right hook for you to use so I put another example together: https://gist.github.com/Pebblo/0abe11d85af126e0aa0db80b1772901b That sets the default value of a custom question with an ID of 93 (you’ll likely need to use 18) and then pulls the value from user meta which it uses as the ‘default’ value for the question. Is that what you are looking for? |
|
|
As always… you are the best Tony Warwick! global $current_user; Thank you I really appreciate your help. |
You’re most welcome and oops, yeah I should have included that. However https://codex.wordpress.org/Function_Reference/get_currentuserinfo You should use https://codex.wordpress.org/wp_get_current_user Note, I’ve updated my gist with the above. |
|
|
Hi Tony, I face some problems with drop-down list. Can’t set the default value using $input_args[ ‘default’ ] = $drop_down_select; |
Hi there, I need more info than that single line 🙂 Can you post the code you are using to PasteBin or create a gist and post the link here to view? |
|
|
case 17: The nationality is a Country Dropdown question |
Yeah, you can’t set the default value of a drop-down that way and you’ll run into problems trying to set the default value of the EE Country dropdowns as they’ll need to match exactly what is set in EE for it to work. I’d recommend switching to a text input. |
|
The support post ‘display some custom question in default wordpress registration form’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.