woocommerce_cart_product_out_of_stock_message

woocommerce_cart_product_out_of_stock_message

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_cart_product_out_of_stock_message') is found 1 times:

  • /includes/class-wc-cart.php line 1201
    				 * @since 4.5.0
    				 * @param string     $message Message.
    				 * @param WC_Product $product_data Product data.
    				 */
    				$message = apply_filters( 'woocommerce_cart_product_out_of_stock_message', $message, $product_data );
    				throw new Exception( $message );
    			}
    
    			if ( ! $product_data->has_enough_stock( $quantity ) ) {
    				$stock_quantity = $product_data->get_stock_quantity();