2013-12-18, 23:46:45
You should check backend explicitly.
you can use this since 3.1
basic.php
you can use this since 3.1
basic.php
PHP Code:
/**
* Check Is FrontEnd
*
* Checks to see if the you are on the frontend or not
*
* @since 3.1
* @return bool
*/
function is_frontend() {
GLOBAL $base;
if(isset($base)) {
return true;
} else {
return false;
}
}