WordPress开发者和主题制作者的搜索引擎



wp_doing_ajax ›

Since4.7.0
已弃用n/a
apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' )
参数:
  • (bool) $wp_doing_ajax Whether the current request is a WordPress Ajax request.
    Required: Yes
定义在:
文档:

Filters whether the current request is a WordPress Ajax request.





源码

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