Move admin functions
This commit is contained in:
26
includes/sp-conditional-functions.php
Normal file
26
includes/sp-conditional-functions.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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' );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user