WC_Data::apply_changes()publicWC 3.0.0

Merge changes with data and clear.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Data = new WC_Data();
$WC_Data->apply_changes();

Changelog

Since 3.0.0 Introduced.

Code of WC_Data::apply_changes() WC 6.9.4

public function apply_changes() {
	$this->data    = array_replace_recursive( $this->data, $this->changes ); // @codingStandardsIgnoreLine
	$this->changes = array();
}