is_ajax()
Is_ajax – Returns true when the page is loaded via ajax.
Description Description
Return Return
(bool)
Source Source
File: includes/wc-conditional-functions.php
function is_ajax() { return function_exists( 'wp_doing_ajax' ) ? wp_doing_ajax() : Constants::is_defined( 'DOING_AJAX' ); }