• Resolved jonoman1

    (@jonoman1)


    I have a form for members in their profile that is pretty long. I want to put an extra “update profile” button for when they are editing so they can save as they go and not wait until they get to the very bottom. Is there any way to do this?

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

    (@aswingiri)

    Hello @jonoman1

    You can try the following code snippets to add an update profile button before the form:

    function custom_add_profile_fields( $args ) {
    	if ( UM()->fields()->editing == true ) {
    
    		echo '<div class="um-col-alt">
            <div class="um-left um-half">
                <input type="submit" value="Update Profile" class="um-button">
            </div>
            <div class="um-right um-half"><a href="'.um_user_profile_url().'" class="um-button um-alt">
            Cancel				</a></div>
            <div class="um-clear"></div>
        </div>';
    
    	} 
    
    }
    add_action( 'um_main_profile_fields', 'custom_add_profile_fields', 99 );

    The plugin currently does not have any way to add update profile button in between 2 fields but you can try some javascript to add button on page load.

    Thread Starter jonoman1

    (@jonoman1)

    Great! Thanks so much for helping out with this.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Thanks for letting us know. I’m marking this as resolved now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I add an “update profile” button for users’ is closed to new replies.