Automattic\WooCommerce\StoreApi\Schemas\V1
ProductSchema::filter_variation_attribute()
Returns true if the given attribute is valid and used for variations.
Method of the class: ProductSchema{}
No Hooks.
Return
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->filter_variation_attribute( $attribute );
- $attribute(mixed) (required)
- Object or variable to check.
ProductSchema::filter_variation_attribute() ProductSchema::filter variation attribute code WC 7.7.0
protected function filter_variation_attribute( $attribute ) { return $this->filter_valid_attribute( $attribute ) && $attribute->get_variation(); }