Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'common' hook - documentation
#6
(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 Smile
http://flexphperia.net - my portfolio
Reply


Messages In This Thread
'common' hook - documentation - by mganko - 2013-12-17, 03:56:24
RE: 'common' hook - documentation - by Carlos - 2013-12-18, 05:43:27
RE: 'common' hook - documentation - by shawn_a - 2013-12-18, 08:14:49
RE: 'common' hook - documentation - by mganko - 2013-12-18, 20:06:25
RE: 'common' hook - documentation - by shawn_a - 2013-12-18, 23:46:45
RE: 'common' hook - documentation - by mganko - 2013-12-19, 00:48:53



Users browsing this thread: 1 Guest(s)