2013-12-19, 00:48:53
(2013-12-18, 23:46:45)shawn_a Wrote: You should check backend explicitly.
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;
}
}
thanks for a tip I did not know about this function
http://flexphperia.net - my portfolio