WordPress.org

Ready to get started?Download WordPress

Codex

Plugin API/Action Reference/wp ajax nopriv (action)

This hook is functionally the same as wp_ajax_(action), however it is used to handle AJAX requests on the front-end for unauthenticated users. Unlike wp_ajax_(action) the ajaxurl javascript global property will not be automatically defined and must be included manually or by using wp_localize_script() with admin_url( 'admin-ajax.php' ) as the data.

To add AJAX callbacks to a plugin please see AJAX in Plugins.

This page is marked as incomplete. You can help Codex by expanding it.