is_ajax() WC 1.0
Is_ajax - Returns true when the page is loaded via ajax.
Хуков нет.
Возвращает
true/false.
Использование
is_ajax();
Код is_ajax() is ajax WC 5.0.0
function is_ajax() {
return function_exists( 'wp_doing_ajax' ) ? wp_doing_ajax() : Constants::is_defined( 'DOING_AJAX' );
}