get_id_from_blogname()
Retrieves a sites ID given its (subdomain or directory) slug.
Uses: get_sites()
No Hooks.
Return
Int|null
. The site ID, or null if no site is found for the given slug.
Usage
get_id_from_blogname( $slug );
- $slug(string) (required)
- A site's slug.
Changelog
Since 3.0.0 | Introduced. |
Since 4.7.0 | Converted to use get_sites(). |