WC_Legacy_Customer::__set()
__set function.
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)
- -
WC_Legacy_Customer::__set() WC Legacy Customer:: set code WC 7.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 ); } }