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:
  • 4: .

Description

Retrieves a site's ID given its (subdomain or directory) slug.

Related Functions

get_date_from_gmt, get_blog_id_from_url, get_dynamic_block_names, get_gmt_from_date, get_user_id_from_string

Top Google Results

User discussions

wpseek mobile