ObjectCache::get_from_datastore()protectedWC 1.0

Get an object from an authoritative data store. This is used by 'get' if the object isn't cached and no custom object retrieval callback is suupplied.

Метод класса: ObjectCache{}

No Hooks.


Array|Object|null. The retrieved object, or null if it's not possible to retrieve an object by the given id.


// protected - for code of main (parent) or child class
$result = $this->get_from_datastore( $id );
$id(int|string) (required)
The id of the object to get.

Code of ObjectCache::get_from_datastore() WC 7.1.0

protected function get_from_datastore( $id ) {
	return null;