Automattic\WooCommerce\Internal\ProductFeed\Feed

FeedValidatorInterface{}interfaceWC 10.5.0

Feed Validator Interface.

No Hooks.

Usage

$FeedValidatorInterface = new FeedValidatorInterface();
// use class methods

Methods

  1. public validate_entry( array $row, \WC_Product $product )

Changelog

Since 10.5.0 Introduced.

FeedValidatorInterface{} code WC 10.8.1

interface FeedValidatorInterface {
	/**
	 * Validate a single entry.
	 *
	 * @param array       $row     The entry to validate.
	 * @param \WC_Product $product The related product. Will be updated with validation status.
	 * @return string[]            Validation issues.
	 */
	public function validate_entry( array $row, \WC_Product $product ): array;
}