Reading POST over admin-ajax.php

OK, so there are many problems with your code… But I’m pretty sure I know, where the major one lies… But first things first… You add your AJAX callbacks with this code: add_action( ‘wp_ajax_wilcity_handle_review_listing’, ‘address_save_postdata’ ); add_action( ‘wp_ajax_wilcity_handle_review_listing’, ‘address_save_postdata’ ); It doesn’t make sense to add the same function twice. It can be a mistake, … Read more

Registration form AJAX check for existing username (simple version)

You’re POSTing user_name but in your code you’re checking for register_name, you should instead check $_POST[‘user_name’] instead. You should also be checking to make sure a value is actually being passed as well, this is how I would do it instead (setting unavailable as default): function mpl_check_username() { $response = array( ‘status’ => ‘unavailable’, ‘text’ … Read more