WC_Coupon::read_object_from_database()
If the object has an ID, read using the data store.
Description Description
Source Source
File: includes/class-wc-coupon.php
protected function read_object_from_database() {
$this->data_store = WC_Data_Store::load( 'coupon' );
if ( $this->get_id() > 0 ) {
$this->data_store->read( $this );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.4.1 | Introduced. |