Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function text_ajax_test(){
check_ajax_referer('text_test_ajax','secure');
if(isset($_REQUEST['text_test'])){
//ここに処理を書く
}
}
add_action('wp_ajax_text_ajax_test','text_ajax_test');//ログインユーザーがactionする場合
add_action('wp_ajax_nopriv_text_ajax_test','text_ajax_test');//非ログインユーザーがactionする場合
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.