WC_Shipping_Rate::add_meta_data( string $key, string $value )
Add some meta data for this rate.
Description Description
Parameters Parameters
- $key
-
(Required) Key.
- $value
-
(Required) Value.
Source Source
File: includes/class-wc-shipping-rate.php
public function add_meta_data( $key, $value ) { $this->meta_data[ wc_clean( $key ) ] = wc_clean( $value ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |