Generic.php
1 week ago
InvalidCurrency.php
1 week ago
InvalidLanguage.php
1 week ago
InvalidProduct.php
1 week ago
InvalidTerm.php
1 week ago
MissingLanguage.php
8 months ago
MissingLanguage.php
17 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\Rest\Exceptions; |
| 4 | |
| 5 | use WC_REST_Exception; |
| 6 | |
| 7 | class MissingLanguage extends WC_REST_Exception { |
| 8 | |
| 9 | public function __construct() { |
| 10 | parent::__construct( |
| 11 | "422", |
| 12 | __( 'Using "translation_of" requires providing a "lang" parameter too', 'woocommerce-multilingual' ), |
| 13 | 422 |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | } |