is_code_available()
is_code_available(array $fields) : mixed
Test is code is available.
If the formdata contains a product ID, it is ignored during the search
Parameters
array | $fields |
Returns
mixed —True on success, array of error messages otherwise