WC_Shipping_Rate::__set
Magic methods to support direct access to props.
Method of the class: WC_Shipping_Rate{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Shipping_Rate = new WC_Shipping_Rate(); $WC_Shipping_Rate->__set( $key, $value );
- $key(string) (required)
- Key.
- $value(mixed) (required)
- Value.
Changelog
| Since 3.2.0 | Introduced. |
WC_Shipping_Rate::__set() WC Shipping Rate:: set code WC 10.4.3
public function __set( $key, $value ) {
if ( is_callable( array( $this, "set_{$key}" ) ) ) {
$this->{"set_{$key}"}( $value );
} else {
$this->data[ $key ] = $value;
}
}