You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
376 B

<?php
namespace WCML\Rest\Exceptions;
use WC_REST_Exception;
class InvalidProduct extends WC_REST_Exception {
/**
* @param int $product_id
*/
public function __construct( $product_id ) {
parent::__construct(
422,
/* translators: $s is a product ID */
sprintf( __( 'Product not found: %d', 'woocommerce-multilingual' ),
$product_id ),
422
);
}
}