WordPress at Your Fingertips
function is not described

WC_Post_Data::deferred_product_sync() public WC 1.0

Sync a product.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Post_Data::deferred_product_sync( $product_id );
$product_id(int) (required)
Product ID.

Code of WC_Post_Data::deferred_product_sync() WC 5.7.1

public static function deferred_product_sync( $product_id ) {
	$product = wc_get_product( $product_id );

	if ( is_callable( array( $product, 'sync' ) ) ) {
		$product->sync( $product );
	}
}