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_blog_id_from_url, get_gmt_from_date, get_user_id_from_string, remove_user_from_blog

Top Google Results

User discussions

wpseek mobile