WordPress at Your Fingertips
function is not described

WC_Product::maybe_defer_product_sync() protected WC 1.0

If this is a child product, queue its parent for syncing at the end of the request.

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

No Hooks.


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->maybe_defer_product_sync();

Code of WC_Product::maybe_defer_product_sync() WC 5.5.2

protected function maybe_defer_product_sync() {
	$parent_id = $this->get_parent_id();
	if ( $parent_id ) {
		wc_deferred_product_sync( $parent_id );