Definition:
function is_admin() {}
Whether the current request is for a network or blog admin page
Does not inform on whether the user is an admin! Use capability checks to tell if the user should be accessing a section or not.
Return values
returns:True if inside WordPress administration pages.
Source code
function is_admin() {
if ( defined( 'WP_ADMIN' ) )
return WP_ADMIN;
return false;
}
2085

February 12, 2011 


No comments yet... Be the first to leave a reply!