WC_Meta_Box_Product_Data::filter_variation_attributes()
Filter callback for finding variation attributes.
Method of the class: WC_Meta_Box_Product_Data{}
No Hooks.
Return
true|false
.
Usage
$result = WC_Meta_Box_Product_Data::filter_variation_attributes( $attribute );
- $attribute(WC_Product_Attribute) (required)
- Product attribute.
WC_Meta_Box_Product_Data::filter_variation_attributes() WC Meta Box Product Data::filter variation attributes code WC 8.6.1
private static function filter_variation_attributes( $attribute ) { return true === $attribute->get_variation(); }