Automattic\WooCommerce\Internal\CLI\Migrator\Lib
ImportSession::get_total_number_of_entities
Метод класса: ImportSession{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ImportSession = new ImportSession(); $ImportSession->get_total_number_of_entities();
Код ImportSession::get_total_number_of_entities() ImportSession::get total number of entities WC 11.3.0
public function get_total_number_of_entities() {
$totals = array();
foreach ( static::PROGRESS_ENTITIES as $field ) {
$totals[ $field ] = (int) get_post_meta( $this->post_id, 'total_' . $field, true );
}
$totals['download'] = $this->get_total_number_of_assets();
return $totals;
}