WC_Install::disable_legacy_variation_price_hash_for_newly_installed │ public static │ WC 11.3.0

Disable the legacy variations price hash algorithm for new stores.

Method of the class: WC_Install{}

No Hooks.

Returns

void. Nothing (null).

Usage

$result = WC_Install::disable_legacy_variation_price_hash_for_newly_installed(): void;

Changelog

Since 11.3.0 Introduced.

WC_Install::disable_legacy_variation_price_hash_for_newly_installed() code WC 11.3.0

public static function disable_legacy_variation_price_hash_for_newly_installed(): void {
	add_option( 'woocommerce_use_legacy_get_variations_price_hash', 'no', '', true );
}