wp_doing_ajax WordPress Filter Hook
The wp_doing_ajax hook is triggered when an AJAX request is made to WordPress. This hook can be used to perform any actions that need to happen before the AJAX request is processed.
apply_filters( 'wp_doing_ajax', bool $wp_doing_ajax ) #
Filters whether the current request is a WordPress Ajax request.
Parameters
- $wp_doing_ajax
(bool)Whether the current request is a WordPress Ajax request.
Source
File: wp-includes/load.php
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |