is_ajax()

Is_ajax – Returns true when the page is loaded via ajax.


Description Description


Return Return

(bool)


Top ↑

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' );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.