wc_deferred_product_sync()
Queue a product for syncing at the end of the request.
No Hooks.
Return
null
. Nothing (null).
Usage
wc_deferred_product_sync( $product_id );
- $product_id(int) (required)
- Product ID.
wc_deferred_product_sync() wc deferred product sync code WC 9.2.3
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; }