Here are three ways to retrieve the ' ID of the current blog.
Via the global $blog_id
1 | ; echo $ blog_id; |
Through the global object $current_blog
1 | -> blog_id ; echo $ current_blog -> blog_id; |
Through the global object $wpdbg
1 | -> blogid ; echo $ wpdb -> blogid; |












[...] This post was Mentioned on Twitter by acidcrash, Giovambattista Fazio. Giovambattista Fazio said: WordPress MU: get the ID of the current blog: Here are three ways to retrieve the ID of the blog ... http://goo.gl/fb/cllVA [...]