Function: get_main_network_id

get_main_network_id( )

Get the main network ID.

Returns

integer

The ID of the main network.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.