WordPress at Your Fingertips
function is not described

WC_Data::apply_changes() public WC 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 5.8.0

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