Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog

AsyncGenerator::get_option_keyprivateWC 1.0

Returns the option key for the feed generation status.

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

Хуков нет.

Возвращает

Строку. The option key.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_option_key( ?array $args ): string;
?array $args
.
По умолчанию: null

Код AsyncGenerator::get_option_key() WC 10.5.2

private function get_option_key( ?array $args = null ): string {
	$normalized_args = $args ?? array();
	if ( ! empty( $normalized_args ) ) {
		ksort( $normalized_args );
	}

	return 'feed_status_' . md5(
		// WPCS dislikes serialize for security reasons, but it will be hashed immediately.
		// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize
		serialize(
			array(
				'integration' => $this->integration->get_id(),
				'args'        => $normalized_args,
			)
		)
	);
}