wc_product_pre_lock_on_sku, null, $product
wc_product_pre_lock_on_sku, null, $product
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('wc_product_pre_lock_on_sku, null, $product') is found 1 times:
- /includes/data-stores/class-wc-product-data-store-cpt.php line 150
* * @param bool|null $locked Set to a boolean value to short-circuit the SKU lock query. * @param WC_Product $product The product being created. */ $locked = apply_filters( 'wc_product_pre_lock_on_sku', null, $product ); if ( ! is_null( $locked ) ) { return boolval( $locked ); } // The insert query can potentially result in a deadlock if there is high concurrency // when trying to insert products, which will result in a false negative for SKU lock