Filters the main network ID.
$main_network_idint
return (int) apply_filters( 'get_main_network_id', $main_network_id );
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_main_network_id