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 );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.1 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.