Automattic\WooCommerce\Admin\Features\Fulfillments
Fulfillment::snapshot_meta
Capture a snapshot of all current meta values.
Called by the data store after reading so that get_changes() can detect meta modifications alongside core data property changes.
Method of the class: Fulfillment{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Fulfillment = new Fulfillment(); $Fulfillment->snapshot_meta(): void;
Changelog
| Since 10.7.0 | Introduced. |
Fulfillment::snapshot_meta() Fulfillment::snapshot meta code WC 10.7.0
public function snapshot_meta(): void {
$this->meta_snapshot = array();
foreach ( $this->get_meta_data() as $meta ) {
$this->meta_snapshot[ $meta->key ] = $meta->value;
}
}