1. 首页
  2. WordPress 函数手册

get_current_network_id()

get_current_network_id()

检索当前网络ID。
Retrieves the current network ID.

目录锚点:#返回#源码#笔记


返回(Return)

(int)当前网络的ID。


源码(Source)


更新版本 源码位置 使用 被使用
4.6.0 wp-includes/load.php:1120 22 4

笔记(Notes)

警告:此函数返回站点id,而不是多站点上下文中预期的博客id。

get_current_network_id() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_current_network_id/