Automattic\WooCommerce\Internal\CLI\Migrator\Interfaces

PlatformFetcherInterface::fetch_total_countpublicWC 1.0

Fetches the estimated total count of items available for migration.

Used primarily for progress indicators. If a total count is not available, this method should return 0.

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

Хуков нет.

Возвращает

int. The total estimated count.

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

$PlatformFetcherInterface = new PlatformFetcherInterface();
$PlatformFetcherInterface->fetch_total_count( $args ): int;
$args(массив) (обязательный)
Arguments for filtering the count (e.g., status, date range). Specific arguments depend on the implementation.

Код PlatformFetcherInterface::fetch_total_count() WC 11.1.0

public function fetch_total_count( array $args ): int;