Function: get_current_network_id

get_current_network_id( )

Retrieves the current network ID.

Returns

integer

The ID of the current network.

WordPress Developer Newsletter

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