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

In this article

Makes private properties settable for backward compatibility.

Parameters

$namestringrequired
The private member to set.
$valuemixedrequired
The value to set.

Source

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

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

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