Automattic\WooCommerce\Caching
ObjectCache::get_object_id()
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.
Method of the class: 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.
ObjectCache::get_object_id() ObjectCache::get object id code WC 8.7.0
abstract protected function get_object_id( $object );