WC_Legacy_Customer::__set( string $key, mixed $value )
__set function.
Description Description
Parameters Parameters
- $key
-
(Required)
- $value
-
(Required)
Source Source
File: includes/legacy/class-wc-legacy-customer.php
65 66 67 68 69 70 71 72 | 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 ); } } |