You can get the current blog id (which would be the site in a network, your subsite) with get_current_blog_id()
and you can get details of a particular site with get_blog_details()
from codex: get_blog_details()
, passed an id of 1
, may return the following object:
[blog_id] => 1
[site_id] => 1
[domain] => foo-multi-site.com
[path] => /site-path/
[registered] => 2014-07-31 14:51:09
[last_updated] => 2014-07-31 15:51:56
[public] => 1
[archived] => 0
[mature] => 0
[spam] => 0
[deleted] => 0
[lang_id] => 0
[blogname] => Site Name
[siteurl] => http://foo-multi-site.com/this-site
[post_count] =>
If you don’t pass an id to get_blog_details()
, it calls get_current_blog_id()
and uses that value.
So perhaps a conditional such as this:
$current_blog = get_blog_details();
if ( $current_blog->path === '/privatesite/' ) {
//display log in or call template for private site
}
else {
//do what you need for default log in
}