wp_ajax_nopriv_{$action}

动作钩子


do_action( "wp_ajax_nopriv_{$action}" )
定义位置
  • wp-admin/admin-ajax.php
    , line 203
引入
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.

do_action( "wp_ajax_nopriv_{$action}" );