Is there anyway to detect if the current server operation is currently an AJAX request in WordPress?
For example:
is_ajax()
if ( ! function_exists('is_ajax') ) { function is_ajax() { return defined( 'DOING_AJAX' ); } }