Automattic\WooCommerce\Internal\CLI\Migrator\Interfaces

PlatformFetcherInterface::fetch_total_count │ public │ WC 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 11.1.2

public function fetch_total_count( array $args ): int;