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