Automattic\WooCommerce\Internal\ProductFeed\Feed
FeedValidatorInterface::validate_entry
Validate a single entry.
Method of the class: FeedValidatorInterface{}
No Hooks.
Returns
String[]. Validation issues.
Usage
$FeedValidatorInterface = new FeedValidatorInterface(); $FeedValidatorInterface->validate_entry( $row, $product ): array;
- $row(array) (required)
- The entry to validate.
- $product(WC_Product) (required)
- The related product. Will be updated with validation status.
FeedValidatorInterface::validate_entry() FeedValidatorInterface::validate entry code WC 10.8.1
public function validate_entry( array $row, \WC_Product $product ): array;