WordPress at a glance
function is not described

WC_Abstract_Legacy_Product::variable_product_sync() public WC 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use d in core instead.

Sync variable product prices with the children lowest/highest prices.

{} It's a method of the class: WC_Abstract_Legacy_Product{}

No Hooks.

Return

Null. Nothing.

Usage

$WC_Abstract_Legacy_Product = new WC_Abstract_Legacy_Product();
$WC_Abstract_Legacy_Product->variable_product_sync( $product_id );
$product_id(int)
-

Changelog

Deprecated Since 3.0.0 not used in core.

Code of WC_Abstract_Legacy_Product::variable_product_sync() WC 5.0.0

<?php
public function variable_product_sync( $product_id = 0 ) {
	wc_deprecated_function( 'WC_Product::variable_product_sync', '3.0' );
	if ( empty( $product_id ) ) {
		$product_id = $this->get_id();
	}

	// Sync prices with children
	if ( is_callable( array( __CLASS__, 'sync' ) ) ) {
		self::sync( $product_id );
	}
}