Advertisement

wp_ajax_nopriv_{$action}

Fires non-authenticated Ajax actions for logged-out users.

wp_ajax_{$action}

Fires authenticated Ajax actions for logged-in users.