get_current_blog_id()

来源: 柚子科技、WordPress 主题、WordPress插件    日期: 2022-12-10    标签:    作者: WordPress主题themes插件plugins开发定制    阅读数: 5

get_current_blog_id()WordPress主题开发过程中,多站点的情况下用的比较多。

介绍

返回当前WordPress的ID。

使用

<?php get_current_blog_id() ?>

参数

无。

返回值

(integer)
Blog id

示例

$blog_id = get_current_blog_id();

链接到文章: https://uziwp.com/16805.html

评论已关闭