WC_Data_Store::update
Update an object in the data store.
Method of the class: WC_Data_Store{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Data_Store = new WC_Data_Store(); $WC_Data_Store->update( $data );
- $data(WC_Data) (required) (passed by reference — &)
- WooCommerce data instance.
Changelog
| Since 3.0.0 | Introduced. |
WC_Data_Store::update() WC Data Store::update code WC 10.6.2
public function update( &$data ) {
$this->instance->update( $data );
}