wpdb::__set( string $name, mixed $value )

Makes private properties settable for backward compatibility.


Parameters

$name

(Required) The private member to set

$value

(Required) The value to set


Source

File: wp-includes/wp-db.php

	public function __set( $name, $value ) {
		$protected_members = array(
			'col_meta',
			'table_charset',
			'check_current_query',
		);
		if (  in_array( $name, $protected_members, true ) ) {
			return;
		}
		$this->$name = $value;
	}

Changelog

Changelog
Version Description
WP-3.5.0 Introduced.