首页 WordPress函数大全 get_id_from_blogname()

get_id_from_blogname()

2020-05-01 / 4013阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_id_from_blogname( string $slug )

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

描述

参数

$slug

(string)
(Required)
A site's slug.

返回

(int|null) The site ID, or null if no site is found for the given slug.

大家谈论
    我的见解