apply_filters( 'wp_doing_ajax', bool $wp_doing_ajax )
- Since
- 4.7.0
Filters whether the current request is a WordPress Ajax request.
Compatibility
- WordPress
- since 4.7.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$wp_doing_ajaxbool- Whether the current request is a WordPress Ajax request.
Where this hook fires · 1
wp-includes/load.php:1724wp_doing_ajax()
Source code
* Filters whether the current request is a WordPress Ajax request. * * @since 4.7.0 * * @param bool $wp_doing_ajax Whether the current request is a WordPress Ajax request. */ return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );} /** * Determines whether the current request should use themes. * * @since 5.1.0Changelog
Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.