Setter.
Allows current multisite naming conventions while setting properties.
(string) (Required) Property to set.
(mixed) (Required) Value to assign to the property.
File: wp-includes/class-wp-site.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; } }
Version | Description |
---|---|
4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site/__set