Used By
Used By | Description |
---|---|
wp-includes/class-wp-network.php: WP_Network::get_main_site_id() | Returns the main site ID for the network. |
Filters the main site ID.
Returning a positive integer will effectively short-circuit the function.
(int|null) If a positive integer is returned, it is interpreted as the main site ID.
(WP_Network) The network object for which the main site was detected.
Version | Description |
---|---|
4.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_main_site_id