Automattic\WooCommerce\Internal\CLI\Migrator\Lib

ImportSession::get_total_number_of_assets │ public │ WC 1.0

Метод класса: ImportSession{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код ImportSession::get_total_number_of_assets() WC 11.3.0

public function get_total_number_of_assets() {
	global $wpdb;

	return (int) $wpdb->get_var(
		$wpdb->prepare(
			"SELECT COUNT(*) FROM $wpdb->posts
		WHERE post_type = 'frontloading_stub'
		AND post_parent = %d",
			$this->post_id
		)
	);
}