WC_Legacy_Customer::__set( string $key, mixed $value )

__set function.


Description Description


Parameters Parameters

$key

(Required)

$value

(Required)


Top ↑

Source Source

File: includes/legacy/class-wc-legacy-customer.php

	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 );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

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