Answer the question
In order to leave comments, you need to log in
Help with wordpress ajax?
jQuery(function($){
$('#register-form .login-form__button').click(function(){
$.ajax({
url: '<?php echo admin_url( "admin-ajax.php" ) ?>',
type: 'POST',
data: 'action=register_account&nameAccount=' + $('#register-form input[name=user]').val() + '&emailAccount=' + $('#register-form input[name=lg]').val() + '&passwordAccount=' + $('#register-form input[name=psw]').val(),
success: function( data ) {
alert( data );
}
});
});
});
Answer the question
In order to leave comments, you need to log in
There was already such a question , and in Google for the request "ajax register wordpress" solutions are dark
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question