Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::get_total_number_of_entitiespublicWC 1.0

Method of the class: ImportSession{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ImportSession = new ImportSession();
$ImportSession->get_total_number_of_entities();

ImportSession::get_total_number_of_entities() code WC 10.8.1

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;
}