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;




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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: