Automattic\WooCommerce\Admin\Notes

Note::apply_changes()publicWC 3.0.0

Merge changes with data and clear.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

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

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

Код Note::apply_changes() WC 7.1.0

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

	// Note actions need to be replaced wholesale.
	// Merging arrays doesn't allow for deleting note actions.
	if ( isset( $this->changes['actions'] ) ) {
		$this->data['actions'] = $this->changes['actions'];
	}

	$this->changes = array();
}