wc_deferred_product_sync( int $product_id )

Queue a product for syncing at the end of the request.


Description Description


Parameters Parameters

$product_id

(Required) Product ID.


Top ↑

Source Source

File: includes/wc-product-functions.php

function wc_deferred_product_sync( $product_id ) {
	global $wc_deferred_product_sync;

	if ( empty( $wc_deferred_product_sync ) ) {
		$wc_deferred_product_sync = array();
	}

	$wc_deferred_product_sync[] = $product_id;
}


Top ↑

User Contributed Notes User Contributed Notes

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