WC_Meta_Data::get_changes()
Return data changes only.
Method of the class: WC_Meta_Data{}
No Hooks.
Return
Array
.
Usage
$WC_Meta_Data = new WC_Meta_Data(); $WC_Meta_Data->get_changes();
WC_Meta_Data::get_changes() WC Meta Data::get changes code WC 9.3.1
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; }