• 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)

    1. 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,

      1. 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,

      1. 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,

      1. 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.
      2. 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

    Viewing 4 replies - 1 through 4 (of 4 total)
    • Thread Starter rippleffect

      (@rippleffect)

      Thanks @missveronicatv

      I added it here on my own post for your convenience.

      In addition,

      User fields not showing after saving profile

      Been using this plugin for over 5 years now. All cache is disabled for UM pages. To confirm its not a Theme issue, I reverted from Storefront to Twenty Twenty-one. Still no luck. To confirm it’s not a cache or plugin conflict, I disabled all plugins. Still no luck. I can confirm that all of my original fields that were there from prior are still visible on the View Profile page. For me, It’s specifically happening on “new” entries.

      I can also confirm that the Visibility and Privacy options under Edit Field in the Registration Form are not working as intended either. Example: if I change Privacy from “Everyone” to “Only specific member roles“, choose “Administrator” and then “Update“, I can still view the fields from the front-end of the Registration Form from a non admin role using a totally different device.

      • This reply was modified 9 months, 1 week ago by rippleffect.
      Plugin Support Aswin Giri

      (@aswingiri)

      @rippleffect If you are only trying to save ip address as metadata when user register, you can try adding following code snippet:

      add_action( 'um_registration_complete', function( $user_id, $args, $form_data ) {
      if ( function_exists( 'get_user_ip_data' ) ) {
      $location = get_user_ip_data(); // Returns array with IP and other details
      if ( ! empty( $location['query'] ) ) { // 'query' holds the IP address
      update_user_meta( $user_id, 'user_ip_address', sanitize_text_field( $location['query'] ) );
      }
      }
      }, 20, 3 );
      Thread Starter rippleffect

      (@rippleffect)

      Thanks for the response @aswingiri ‘”

      I’m actually trying to add and pull multiple fields to the Profile. I was only using the “IP Address” as one example. As a side note, I added your code snippet to see if it works and it does not.

      Thread Starter rippleffect

      (@rippleffect)

      Hello @ultimatemembersupport,

      Seeing that another user like <span style=”font-size: inherit;”>@bubbleck</span> is having the same issues with “User fields not showing after saving profile“, will this be something that is looked at from the developers end to hopefully resolve sooner than later?

      To clarify, I tried all of the troubleshooting that @missveronicatv gave to @bubbleck and I was unsuccessful as well

      ————-

      To look for alternate solutions to the plugin’s initial problems, I came across Browser Detect in the articles under Basic Extensions. I thought that this may be a viable solution. Unfortunately, this arose more issues.

      On 8/15/25, I downloaded the “UM Extended” plugin zip file directly from Github and installed it onto my admin panel using (https://github.com/ultimatemember/Extended). I was then able to select and activate both Basic Extensions, User Meta Shortcode & Browser Detect. I then made sure to follow all of the instructions from the articles given on User Meta Shortcode & User Browser Detect.

      Issue,

      After activating the Browser Detect extension (Dashboard > UM Extended > Browser Detect > Learn More > Activate), I headed over to the Registration Form to add the new predefined fields. Unfortunately, I am unable to see the “new” Predefined Fields within the Field Manager,

      1. User IP Address 
      2. User Operating System 
      3. User Web Browser

      WordPress, Ultimate Member and all other plugins are up to date. As I’ve said prior. I’ve deactivated plugins, I’ve ensured there is no browser caching issues and even switched out themes to try and resolve.

      If I’m missing something, please let me know. Otherwise, any help to get this resolved would be greatly appreciative. This coming from a user who’s been using this Plugin for many years now and, love it!

      Based on my initial issue, is there a way to use the meta key that was created from the custom short code field on the Registration form so that it can be used to capture data onto the profile form?

      Thanks

    Viewing 4 replies - 1 through 4 (of 4 total)

    The topic ‘Registration / Profile’ is closed to new replies.