WordPress at a glance
function is not described

WP_Site::__set() public WP 4.6.0

Setter.

Allows current multisite naming conventions while setting properties.

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

No Hooks.

Return

null. Nothing.

Usage

$WP_Site = new WP_Site();
$WP_Site->__set( $key, $value );
$key(string) (required)
Property to set.
$value(mixed) (required)
Value to assign to the property.

Changelog

Since 4.6.0 Introduced.

Code of WP_Site::__set() WP 5.7.2

<?php
public function __set( $key, $value ) {
	switch ( $key ) {
		case 'id':
			$this->blog_id = (string) $value;
			break;
		case 'network_id':
			$this->site_id = (string) $value;
			break;
		default:
			$this->$key = $value;
	}
}