Files
sportspress/includes/sp-conditional-functions.php
2014-03-25 17:06:06 +11:00

26 lines
485 B
PHP

<?php
/**
* SportsPress Conditional Functions
*
* Functions for determining the current query/page.
*
* @author ThemeBoy
* @category Core
* @package SportsPress/Functions
* @version 0.7
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! function_exists( 'is_ajax' ) ) {
/**
* is_ajax - Returns true when the page is loaded via ajax.
*
* @access public
* @return bool
*/
function is_ajax() {
return defined( 'DOING_AJAX' );
}
}