Automattic\WooCommerce\Internal\ProductFeed\Mapping
UcpProductMapper::record_truncation
Note that a product's variant list came back short, for the caller to report.
Метод класса: UcpProductMapper{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->record_truncation( $item, $returned, $total ): void;
- $item(массив) (обязательный)
- Store API item response of the variable product.
- $returned(int) (обязательный)
- Number of variants actually built.
- $total(int) (обязательный)
- Number of variants there were to build.
Код UcpProductMapper::record_truncation() UcpProductMapper::record truncation WC 11.3.0
private function record_truncation( array $item, int $returned, int $total ): void {
if ( $returned >= $total ) {
return;
}
$this->truncations[ (int) $item['id'] ] = array(
'title' => (string) $item['name'],
'returned' => $returned,
'total' => $total,
);
}