WC_Legacy_Customer::__set()publicWC 1.0

__set function.

Method of the class: WC_Legacy_Customer{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Legacy_Customer = new WC_Legacy_Customer();
$WC_Legacy_Customer->__set( $key, $value );
$key(string) (required)
-
$value(mixed) (required)
-

WC_Legacy_Customer::__set() code WC 8.7.0

public function __set( $key, $value ) {
	wc_doing_it_wrong( $key, 'Customer properties should not be set directly.', '3.0' );
	$key = $this->filter_legacy_key( $key );

	if ( is_callable( array( $this, "set_{$key}" ) ) ) {
		$this->{"set_{$key}"}( $value );
	}
}