wc_deferred_product_sync()
Queue a product for syncing at the end of the request.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wc_deferred_product_sync( $product_id );
- $product_id(int) (обязательный)
- Product ID.
Код wc_deferred_product_sync() wc deferred product sync WC 9.4.2
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; }