WC_Legacy_Customer::__set() public WC 1.0
__set function.
{} It's a method of the class: WC_Legacy_Customer{}
No Hooks.
Return
Null. Nothing.
Usage
$WC_Legacy_Customer = new WC_Legacy_Customer(); $WC_Legacy_Customer->__set( $key, $value );
- $key(string) (required)
- -
- $value(mixed) (required)
- -
Code of WC_Legacy_Customer::__set() WC Legacy Customer:: set WC 5.0.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 );
}
}