WC_Data_Store_WP::update_meta( WC_Data $object, stdClass $meta )

Update meta.


Description Description


Parameters Parameters

$object

(Required) WC_Data object.

$meta

(Required) (containing ->id, ->key and ->value).


Top ↑

Source Source

File: includes/data-stores/class-wc-data-store-wp.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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