• I have added fields to the registration page and am checking for errors using a function and a filter as shown in the docs, and it’s working well.

    Now I’m trying to do the same thing on a custom profile page, but $template->the_errors() doesn’t produce an error, even when it should.

    Digging into the code, if I add echo $output to line 227 of includes/class-theme-my-login-template.php (in the get_errors() function, right before return $output), the error message I’m looking for is displayed, and yet $this->get_errors() returns nothing.

    How can I check for and display errors on a custom profile page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Does it work correctly if you use the plugin-created profile page?

    Thread Starter rhodie

    (@rhodie)

    Yes — I tested with an incorrect email address and the plugin-created profile gives the error “The email address isn’t correct”, while the custom one silently fails to change the email address.

    Thread Starter rhodie

    (@rhodie)

    Do you have suggestions about how to debug this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add filter to custom profile’ is closed to new replies.