wp_doing_ajax

过滤钩子


apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' )
参数
  • (bool)
    $wp_doing_ajax
    Whether the current request is a WordPress Ajax request.
    Required:
定义位置
  • wp-includes/load.php
    , line 1539
引入
4.7.0
弃用

Filters whether the current request is a WordPress Ajax request.

return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );