Automattic\WooCommerce\Admin\Features\Fulfillments
Fulfillment::set_props_from_storage
Set props from a raw storage row, skipping setter-level normalization.
DB values are already stored in UTC, so they must not be re-normalized by set_date_*() setters (which would treat them as site-local input).
Method of the class: Fulfillment{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Fulfillment = new Fulfillment(); $Fulfillment->set_props_from_storage( $props ): void;
- $props(array) (required)
- .
Changelog
| Since 10.8.0 | Introduced. |
Fulfillment::set_props_from_storage() Fulfillment::set props from storage code WC 10.9.1
public function set_props_from_storage( array $props ): void {
foreach ( $props as $key => $value ) {
if ( array_key_exists( $key, $this->data ) ) {
$this->set_prop( $key, $value );
}
}
}