Created
January 30, 2018 20:55
-
-
Save thiagotmendes/6a55c20b1f61fa9a152a2821df98b9ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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