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:
  • M: U

Description

Retrieves a sites ID given its (subdomain or directory) slug.

Related Functions

get_date_from_gmt, get_gmt_from_date, get_blog_id_from_url, get_dynamic_block_names, get_user_id_from_string

Top Google Results

User discussions

wpseek mobile