pre_get_main_site_id

最后更新于:2021-11-27 18:48:41

apply_filters( ‘pre_get_main_site_id’, int|null $main_site_id, GC_Network $network )

Filters the main site ID.

参数

$main_site_id

(int|null)
If a positive integer is returned, it is interpreted as the main site ID.

$network

(GC_Network)
The network object for which the main site was detected.

源文件

文件: gc-includes/class-gc-network.php

View on Trac