get_main_network_id WordPress Filter Hook
The get_main_network_id WordPress hook is used to return the id of the main network. This can be useful for plugins and themes that need to know the id of the main network.
apply_filters( 'get_main_network_id', int $main_network_id ) #
Filters the main network ID.
Parameters
- $main_network_id
(int)The ID of the main network.
Source
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |