WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

Note::apply_changes() public WC 3.0.0

Merge changes with data and clear.

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of Note::apply_changes() WC 5.3.0

<?php
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();
}