WordPress at a glance
action is not described

wp_ajax_nopriv_(action) action-hook . WP 2.8.0

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

The dynamic portion of the hook name, $action, refers to the name of the Ajax action callback being fired.


add_action( 'wp_ajax_nopriv_(action)', 'action_function_name_797' );
function action_function_name_797(){
	// action...


Since 2.8.0 Introduced.

Where the hook is called

In file: /wp-admin/admin-ajax.php
wp-admin/admin-ajax.php 202
do_action( "wp_ajax_nopriv_{$action}" );

Where in WP core the hook is used WordPress

wp-admin/admin-ajax.php 167
add_action( 'wp_ajax_nopriv_generate-password', 'wp_ajax_nopriv_generate_password' );
wp-admin/admin-ajax.php 169
add_action( 'wp_ajax_nopriv_heartbeat', 'wp_ajax_nopriv_heartbeat', 1 );