• Resolved mvbarrios

    (@mvbarrios)


    Hello i create a custom js and html for check the password strengthand im using the hook um_after_form_fields to show the html in the register but also is showing in my login for, is there any way to avoid this?

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

    (@champsupertramp)

    Hi @mvbarrios

    You can try adding the validation to check the current page.

    e.g.

    add_action("um_after_form_fields","um_072021_add_more_divs");
    function um_072021_add_more_divs(){
       if( um_is_core_page("register") ) { 
          // do something to Register form
       }
    }
    

    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 ‘Show a div only in register form’ is closed to new replies.