WC_Data_Store_WP::update_meta()publicWC 3.0.0

Update meta.

Method of the class: WC_Data_Store_WP{}

No Hooks.

Return

null. Nothing (null).

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.

WC_Data_Store_WP::update_meta() code WC 9.4.2

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