wp_doing_ajax
Determines whether the current request is a WordPress Ajax request.
Description
wp_doing_ajax();
Usage
if ( !function_exists( 'wp_doing_ajax' ) ) { require_once ABSPATH . WPINC . '/load.php'; } // NOTICE! Understand what this does before running. $result = wp_doing_ajax();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/load.php
- function wp_doing_ajax() {
- /**
- * 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.
- */
- }