WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

ProductSchema::filter_valid_attribute() protected WC 1.0

Returns true if the given attribute is valid.

{} It's a method of the class: ProductSchema{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->filter_valid_attribute( $attribute );
$attribute(mixed) (required)
Object or variable to check.

Code of ProductSchema::filter_valid_attribute() WC 5.6.0

protected function filter_valid_attribute( $attribute ) {
	return is_a( $attribute, '\WC_Product_Attribute' );
}