WC_Data::apply_changes()
Merge changes with data and clear.
Method of the class: WC_Data{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Data = new WC_Data(); $WC_Data->apply_changes();
Changelog
Since 3.0.0 | Introduced. |
WC_Data::apply_changes() WC Data::apply changes code WC 8.6.1
public function apply_changes() { $this->data = array_replace_recursive( $this->data, $this->changes ); // @codingStandardsIgnoreLine $this->changes = array(); }