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)
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 ); } }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |