wc_product_pre_lock_on_sku
wc_product_pre_lock_on_sku
Appears in: woocommerce.9.3.1
Hook Type: filter
Displaying hooks found in version: woocommerce.9.3.1apply_filters('wc_product_pre_lock_on_sku') is found 1 times:
- /includes/data-stores/class-wc-product-data-store-cpt.php line 143
* * @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 ); } // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared $result = $wpdb->query( $query );