Does anyone know how to validate wordpress username and email with jquery validation plugin?
I’m trying to check if username and email exists with validation’s remote method.
And I notice wordpress has functions like username_exists and email_exists, is there a quick way to do the job?
Plz help~
You can use something like this on client side (the ajax URL does not have to be hardcoded, check note here: http://codex.wordpress.org/AJAX_in_Plugins#Ajax_on_the_Viewer-Facing_Side):
And this in functions.php: