Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog
FeedValidator{}└─ FeedValidatorInterface
Simple field validator for the POS catalog.
No Hooks.
Usage
$FeedValidator = new FeedValidator(); // use class methods
Methods
Changelog
| Since 10.5.0 | Introduced. |
FeedValidator{} FeedValidator{} code WC 10.7.0
final class FeedValidator implements FeedValidatorInterface {
/**
* Validate single feed row using schema.
*
* @param array $entry Product data row to validate.
* @param \WC_Product $product The related product. Will be updated with validation status.
* @return array Array of validation issues.
*/
public function validate_entry( array $entry, \WC_Product $product ): array { //phpcs:ignore VariableAnalysis
return array();
}
}