What is the practical difference between is_admin() and is_blog_admin()?

I can see that the 2 functions are almost identical. Only difference is in one line:

@is_admin() return $GLOBALS['current_screen']-in_admin();

@is_blog_admin() return $GLOBALS['current_screen']-in_admin( 'site' );

What is the practical purpose / reason behind this? Or where can i read more about it?

I can see that is_blog_admin() 'born' much later, and since it's giving the 'site' parameter to the in_admin() function that it calls internally, it works as a stricter condition, thus being more specific and probably not good idea to use it as an 'alias' to 'is_admin()' (since it's not). I just would like to see where this is used in practice?

Topic conditional-tags admin wp-admin Wordpress

Category Web


On a multisite network is_admin() is true for everything under /wp-admin, including the multisite network admin at /wp-admin/network, but is_blog_admin() is only true for the admin for an individual site/blog on the network, and is not true for /wp-admin/network.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.