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.


Top ↑

Source

File: wp-includes/load.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.