Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
add_action('wp_ajax_insereDados', 'insereDados');
add_action('wp_ajax_nopriv_insereDados', 'insereDados' ); // aparentemente não é obrigatorio utilizar este action
function insereDados(){
echo $_POST['nome'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment