Function : is_admin()

Conditionnal function

This function is a conditional function which helps you to know whether current user is on the dashboard interface or not. It returns true if current user is on dashboard interface and false if not.

You can use it as follows.

<?php
if( is_admin() ) {
	// do something...
}