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.


Top ↑

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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.