apply_filters( ‘wp_doing_ajax’, bool $wp_doing_ajax )

In this article

Filters whether the current request is a WordPress Ajax request.

Parameters

$wp_doing_ajaxbool
Whether the current request is a WordPress Ajax request.

Source

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

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.