Warning: This method has been deprecated. not used in core instead.

WC_Abstract_Legacy_Product::variable_product_sync( int $product_id )

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


Description Description


Parameters Parameters

$product_id

(Required)


Top ↑

Source Source

File: includes/legacy/abstract-wc-legacy-product.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 );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.