WordPress.org

Codex

Function Reference/get id from blogname

Contents

Description

Given a blog's (subdomain or directory) name, retrieve it's id.

Usage

<?php get_id_from_blogname$slug ?>

Parameters

$slug
(string) (required) The blog's slug
Default: None

Return Values

(integer) 
The blog id

Examples


Notes

Change Log

Since: 3.0.0

Source File

get_id_from_blogname() is located in wp-includes/ms-blogs.php

Related

 

See also index of Function Reference and index of Template Tags.