WordPress at Your Fingertips
function is not described

WC_Order::get_changes() public WC 1.0

Expands the shipping and billing information in the changes array.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Order::get_changes() WC 5.7.1

public function get_changes() {
	$changed_props = parent::get_changes();
	$subs          = array( 'shipping', 'billing' );
	foreach ( $subs as $sub ) {
		if ( ! empty( $changed_props[ $sub ] ) ) {
			foreach ( $changed_props[ $sub ] as $sub_prop => $value ) {
				$changed_props[ $sub . '_' . $sub_prop ] = $value;
			}
		}
	}
	if ( isset( $changed_props['customer_note'] ) ) {
		$changed_props['post_excerpt'] = $changed_props['customer_note'];
	}
	return $changed_props;
}