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.

Method of the class: PlatformFetcherInterface{}

No Hooks.

Returns

Int. The total estimated count.

Usage

$PlatformFetcherInterface = new PlatformFetcherInterface();
$PlatformFetcherInterface->fetch_total_count( $args ): int;
$args(array) (required)
Arguments for filtering the count (e.g., status, date range). Specific arguments depend on the implementation.

PlatformFetcherInterface::fetch_total_count() code WC 10.7.0

public function fetch_total_count( array $args ): int;