wp_doing_ajax()
Determines whether the current request is a WordPress Ajax request.
Return
(bool) True if it's a WordPress Ajax request, false otherwise.
Source
File: wp-includes/load.php
function wp_doing_ajax() {
/**
* Filters whether the current request is a ClassicPress Ajax request.
*
* @since WP-4.7.0
*
* @param bool $wp_doing_ajax Whether the current request is a ClassicPress Ajax request.
*/
return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
}
Related
Uses
Uses | Description |
---|---|
wp-includes/plugin.php: apply_filters() |
Calls the callback functions that have been added to a filter hook. |
wp-includes/load.php: wp_doing_ajax |
Filters whether the current request is a WordPress Ajax request. |
Used By
Used By | Description |
---|---|
wp-includes/classicpress/class-cp-customization.php: CP_Customization::add_id_init() |
Add ID column to Post / Page Tables |
wp-includes/load.php: is_protected_endpoint() |
Determines whether we are currently on an endpoint that should be protected against WSODs. |
wp-includes/load.php: is_protected_ajax_action() |
Determines whether we are currently handling an Ajax action that should be protected against WSODs. |
wp-includes/pluggable.php: check_ajax_referer() |
Verifies the Ajax request to prevent processing requests external of the blog. |
wp-includes/pluggable.php: wp_validate_auth_cookie() |
Validates authentication cookie. |
wp-includes/comment.php: wp_allow_comment() |
Validates whether this comment is allowed to be made. |
wp-includes/comment.php: wp_check_comment_flood() |
Checks whether comment flooding is occurring. |
wp-includes/class-wp-ajax-response.php: WP_Ajax_Response::send() |
Display XML formatted responses. |
wp-includes/theme.php: _wp_customize_include() |
Includes and instantiates the WP_Customize_Manager class. |
wp-includes/option.php: wp_user_settings() |
Saves and restores user interface settings stored in a cookie. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::doing_ajax() |
Returns true if it’s an Ajax request. |
wp-includes/load.php: wp_debug_mode() |
Set PHP error reporting based on WordPress debug settings. |
wp-includes/functions.php: wp_send_json() |
Sends a JSON response back to an Ajax request. |
wp-includes/functions.php: wp_die() |
Kills WordPress execution and displays HTML page with an error message. |
wp-admin/includes/class-wp-list-table.php: WP_List_Table::set_pagination_args() |
An internal method that sets all the necessary pagination arguments |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::prepare_items() | |
wp-admin/includes/class-wp-comments-list-table.php: WP_Comments_List_Table::handle_row_actions() |
Generates and displays row actions links. |
wp-admin/includes/dashboard.php: wp_dashboard_cached_rss_widget() |
Checks to see if all of the feed url in $check_urls are cached. |
wp-admin/includes/ms.php: check_upload_size() |
Determine if uploaded file exceeds space quota. |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::column_name() | |
wp-admin/includes/class-wp-terms-list-table.php: WP_Terms_List_Table::handle_row_actions() |
Generates and displays row action links. |
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |