wp_doing_ajax()
Determines whether the current request is a ClassicPress Ajax request.
Return
(bool) True if it's a ClassicPress Ajax request, false otherwise.
Source
File: wp-includes/load.php
function wp_doing_ajax() {
/**
* Filters whether the current request is a ClassicPress Ajax request.
*
* @since WP-4.7.0
*
* @param bool $wp_doing_ajax Whether the current request is a ClassicPress Ajax request.
*/
return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
}
Changelog
Version | Description |
---|---|
WP-4.7.0 | Introduced. |