Automattic\WooCommerce\Internal\ProductFeed\Mapping
UcpProductMapper::take_truncations
Take the truncations recorded while building the current response.
Raw data, not messages: only the caller knows the JSONPath to point at.
Method of the class: UcpProductMapper{}
No Hooks.
Returns
array. Keyed by product id, each { title, returned, total }.
Usage
$UcpProductMapper = new UcpProductMapper(); $UcpProductMapper->take_truncations(): array;
UcpProductMapper::take_truncations() UcpProductMapper::take truncations code WC 11.3.0
public function take_truncations(): array {
$truncations = $this->truncations;
$this->truncations = array();
return $truncations;
}