Automattic\WooCommerce\Caching

ObjectCache::get_object_id()protectedWC 1.0

Get the id of an object. This is used by 'set' when a null id is passed. If the object id can't be determined the method must return null.

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

No Hooks.

Return

Int|String|null.

Usage

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

Code of ObjectCache::get_object_id() WC 7.1.0

protected function get_object_id( $object ) {
	return null;
}