Automattic\WooCommerce\Admin\Notes
Note::apply_changes() public WC 3.0.0
Merge changes with data and clear.
{} Это метод класса: Note{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Note = new Note(); $Note->apply_changes();
Список изменений
С версии 3.0.0 | Введена. |
Код Note::apply_changes() Note::apply changes WC 5.0.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();
}