Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Hi Tom
I have set up a private reply for you now.
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Hi Tom
I took a copy of your site (using All in One WP Migration, Duplicator doesn't work well on WPEngine sites) and installed it locally.
In my testing the cred validation hook appeared to work correctly (I was just testing the simple code to log messages to the debug log, if that works then the validation code itself should work).
The main difference between my copy of your site and the original is that I don't have the drop-in and mu-plugins active that WP Engine adds.
I wanted to do some more testing on your staging site, including looking at the logs myself, but the FTP credentials you supplied didn't work so I can't see them.
Let me set another private reply so you can update them after testing.
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Hi Tom
Thanks for the updated credentials.
I used the form on the create account page to register a test user and then checked the debug.log and found that the test message "Inside hooked function" had been added.
So I commented out that test function and then re-instated the actual validation function for first and last names and then test submitted the form again.
The validation worked as expected (see screenshot).
So I can't reproduce the problem on your site.
The only change I made was to comment out the reCaptcha field in the CRED form because your staging site is not registered with the API keys, but I don't think this should be a problem because I checked on my local test site whether the reCaptcha might be a problem and it was not.
I have deleted the test user I created.
Hi Nigel. Thanks for testing that out for me. I just went back to the original site and tested it again and it worked. I honestly have no idea what the problem was because the code is exactly the same as it was when it wasn't working. Thanks for the help!