WP_Network::_set_site_name()

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

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

Source

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 );
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.