WC_Legacy_Customer::__set
__set function.
Метод класса: WC_Legacy_Customer{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Legacy_Customer = new WC_Legacy_Customer(); $WC_Legacy_Customer->__set( $key, $value );
- $key(строка) (обязательный)
- .
- $value(разное) (обязательный)
- .
Код WC_Legacy_Customer::__set() WC Legacy Customer:: set WC 10.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 );
}
}