Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @crossv

    Unfortunately, this functionality does not exist in our plugin at this time. Sorry, but customizations are not included in our support.

    Regards.

    Hello @crossv

    If you are able to write custom code, you can achieve this with the following code

    function get_url_param_for_ultimate_member() {
        if (isset($_GET['user_email'])) {
            $email = sanitize_email($_GET['user_email']);
            ?>
            <script type="text/javascript">
                document.addEventListener("DOMContentLoaded", function() {
                    var inputField = document.querySelector('input[name="your_field_name"]');
                    if (inputField) {
                        inputField.value = "<?php echo esc_js($email); ?>";
                    }
                });
            </script>
            <?php
        }
    }
    add_action('wp_footer', 'get_url_param_for_ultimate_member');
    

    Just be sure to change your_field_name to the name of your user_email field since it can vary.

    Thread Starter crossv

    (@crossv)

    Hi @suiteplugins

    Thanks for the helpful reply, although I can’t write WordPress code at this moment but this worked like magic!

    Thanks a million!.

    • This reply was modified 1 year, 2 months ago by crossv.
    • This reply was modified 1 year, 2 months ago by crossv.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fill UM Register forms field using URL GET Method’ is closed to new replies.