• Resolved solaris50

    (@solaris50)


    Hi,

    I want to add an extra button to my register form that will send the user a verification email containing a code.

    I am not sure how I can create this button can I get assistance with this

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @solaris50

    You need to dettach this function um_add_submit_button_to_register from the action hook um_after_register_fields

    e.g.
    remove_action( 'um_after_register_fields', 'um_add_submit_button_to_register', 1000 );

    And then copy the content from the function um_add_submit_button_to_register and modify the content to add your custom button. Now, create a new function and attach it to the action hook um_after_register_fields

    e.g.
    add_action( 'um_after_register_fields', 'um_060321_mycustom_register_btn', 1000 );

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a button’ is closed to new replies.