Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog

AsyncGenerator::get_chunk_size_option_key │ private │ WC 1.0

Returns the option key under which the effective chunk size is persisted.

Stored separately from the status so a shrunk chunk size survives the status being cleared when a job completes, expires, or restarts, and carries over to the next request from the app.

Method of the class: AsyncGenerator{}

No Hooks.

Returns

string. The option key for the effective chunk size.

Usage

// private - for code of main (parent) class only
$result = $this->get_chunk_size_option_key( $option_key ): string;
$option_key(string) (required)
The option key for the feed generation status.

AsyncGenerator::get_chunk_size_option_key() code WC 11.2.1

private function get_chunk_size_option_key( string $option_key ): string {
	return $option_key . '_chunk_size';
}