A WordPress-centric search engine for devs and theme authors



wp_doing_ajax ›

Since4.7.0
Deprecatedn/a
apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' )
Parameters:
  • (bool) $wp_doing_ajax Whether the current request is a WordPress Ajax request.
    Required: Yes
Defined at:
Codex:

Filters whether the current request is a WordPress Ajax request.





Source

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