Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_doing_ajax ›

Desde4.7.0
Obsoleton/a
apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' )
Parâmetros:
  • (bool) $wp_doing_ajax Whether the current request is a WordPress Ajax request.
    Required: Yes
Definido em:
Codex:

Filters whether the current request is a WordPress Ajax request.





Fonte

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