On this page
apply_filters( 'wp_doing_ajax', bool $wp_doing_ajax )
Filters whether the current request is a WordPress Ajax request.
Parameters
$wp_doing_ajaxbool-
Whether the current request is a WordPress Ajax request.
Source
File: wp-includes/load.php. View all references
return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
Related
Used By
| Used By | Description |
|---|---|
| wp_doing_ajax() wp-includes/load.php | Determines whether the current request is a WordPress Ajax request. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_doing_ajax