WordPress at Your Fingertips
function is not described

WC_Data_Store_WP::update_meta() public WC 3.0.0

Update meta.

{} It's a method of the class: WC_Data_Store_WP{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Data_Store_WP = new WC_Data_Store_WP();
$WC_Data_Store_WP->update_meta( $object, $meta );
$object(WC_Data) (required) (passed by reference — &)
WC_Data object.
$meta(stdClass) (required)
(containing ->id, ->key and ->value).

Changelog

Since 3.0.0 Introduced.

Code of WC_Data_Store_WP::update_meta() WC 5.8.0

public function update_meta( &$object, $meta ) {
	update_metadata_by_mid( $this->meta_type, $meta->id, $meta->value, $meta->key );
}