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_1326' );
function action_function_name_1326(){
	// action...

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

В файле: /wp-admin/admin-ajax.php
wp-admin/admin-ajax.php 191
do_action( "wp_ajax_nopriv_{$action}" );

Где используется хук в ядре WordPress

wp-admin/admin-ajax.php 158
add_action( 'wp_ajax_nopriv_heartbeat', 'wp_ajax_nopriv_heartbeat', 1 );