WordPress at a glance
function is not described

WP_Network::_set_cookie_domain() private WP 4.4.0

Set the cookie domain based on the network domain if one has not been populated.

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

No Hooks.

Return

````. Null. Nothing.

Usage

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

Changelog

Since 4.4.0 Introduced.

Code of WP_Network::_set_cookie_domain() WP 5.7

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

	$this->cookie_domain = $this->domain;
	if ( 'www.' === substr( $this->cookie_domain, 0, 4 ) ) {
		$this->cookie_domain = substr( $this->cookie_domain, 4 );
	}
}