Registration / Profile
-
End result, I’d like to be able to save Shortcode information from the Registration Form to the Profile Form as permanent (meta key) data.
Situation 1 (Example)
- I installed a plugin called, “User IP and Location”. I then opened Ultimate Member / Forms / Default Registration / Add Field ( Fields Manager) / Shortcode / and entered the Shortcode information (
[userip_location type="ip"]) provided by the “User IP and Location” plugin and saved. As to ensure the Shortcode ([userip_location type="ip"]) provided works, I then proceeded to the Registration page of the website and can see my IP Address. It works!
I now want to save the info provided on the Registration form as permanent meta data on the Profile Form when the user successfully “Registers”.
Trying to save “Shortcode” as ‘Meta key” on the Profile Form,
- I opened Ultimate Member / Forms / Default Profile / Add Field ( Fields Manager) / Copied the Meta Key (um_shortcode_887_10) from the Custom Fields entry/ Text Box / Add a New Field / and then entered the Title, Label, Icon and Meta Key (um_shortcode_887_10). After selecting “Add”, I get an error message saying, “Your meta key already exists in your fields lists”. I understand (according to documentation from UM) that you can’t have a duplicate meta key for both.
Because this did not work,
- I then changed it by going to, Ultimate Member / Forms / Default Profile / Add Field ( Fields Manager) / Custom Fields / Selecting the “IP Address ( Shortcode)” from the Custon Fields list. This allowed me to add the field successfully.
To Test,
- I opened up my Login page on a “smartphone” with a different IP Address. I then proceeded to the Registration page. On the Registration page, I can see the IP Address that my device is providing. Perfect! I then submitted the “Fake user” registration.
- I now proceed to the Profile Form as an admin on my “computer” (different device/IP Address). WordPress/ Dashboard / User / “Fake user” / View profile. From here, I can see the full users profile as intended. Problem is, I see the IP address provided by my computer and not by the device I created the “Fake user” registration from. Meaning, the intended IP Address from the Registration Form did not save to the Profile Form. I fully understand that you cannot save Shortcode as permanent data and this is why I’m seeing my computers IP Address.
The question is,
How do I save the Shortcode (IP Address) provided from my Registration Form as permanent Meta Key data on my Profile Form? Especially if you cant use the meta key data created from the Shortcode in the Custom Fields list.
Any help would be appreciated
Thanks
- I installed a plugin called, “User IP and Location”. I then opened Ultimate Member / Forms / Default Registration / Add Field ( Fields Manager) / Shortcode / and entered the Shortcode information (
The topic ‘Registration / Profile’ is closed to new replies.