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.
Метод класса: UcpProductMapper{}
Хуков нет.
Возвращает
array. Keyed by product id, each { title, returned, total }.
Использование
$UcpProductMapper = new UcpProductMapper(); $UcpProductMapper->take_truncations(): array;
Код UcpProductMapper::take_truncations() UcpProductMapper::take truncations WC 11.3.0
public function take_truncations(): array {
$truncations = $this->truncations;
$this->truncations = array();
return $truncations;
}