get_id_from_blogname
get_id_from_blogname ( $slug )
Parameters:- (string) slug A site's slug.
Returns:- (int|null) The site ID, or null if no site is found for the given slug.
Defined at:Change Log: - Introduced in WordPress: —
- Deprecated in WordPress: —
Description
Retrieves a site's ID given its (subdomain or directory) slug.