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.
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; }