WordPress at a glance
function is not described

WP_Network::_set_site_name() private WP 4.4.0

Set the site name assigned to the network if one has not been populated.

{} It's a method of the class: WP_Network{}

No Hooks.

Return

null. Null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->_set_site_name();

Changelog

Since 4.4.0 Introduced.

Code of WP_Network::_set_site_name() WP 5.7

<?php
private function _set_site_name() {
	if ( ! empty( $this->site_name ) ) {
		return;
	}

	$default         = ucfirst( $this->domain );
	$this->site_name = get_network_option( $this->id, 'site_name', $default );
}