WC_Post_Data::deferred_product_sync( int $product_id )
Sync a product.
Description Description
Parameters Parameters
- $product_id
-
(Required) Product ID.
Source Source
File: includes/class-wc-post-data.php
public static function deferred_product_sync( $product_id ) { $product = wc_get_product( $product_id ); if ( is_callable( array( $product, 'sync' ) ) ) { $product->sync( $product ); } }