WC_Data::apply_changes()publicWC 3.0.0

Merge changes with data and clear.

Метод класса: WC_Data{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Список изменений

С версии 3.0.0 Введена.

Код WC_Data::apply_changes() WC 8.7.0

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