WordPress at Your Fingertips
function is not described

WC_Meta_Data::get_changes() public WC 1.0

Return data changes only.

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

No Hooks.

Return

Array.

Usage

$WC_Meta_Data = new WC_Meta_Data();
$WC_Meta_Data->get_changes();

Code of WC_Meta_Data::get_changes() WC 5.8.0

public function get_changes() {
	$changes = array();
	foreach ( $this->current_data as $id => $value ) {
		if ( ! array_key_exists( $id, $this->data ) || $value !== $this->data[ $id ] ) {
			$changes[ $id ] = $value;
		}
	}
	return $changes;
}