WordPress at a glance
function is not described

WC_Product_Data_Store_Interface::find_matching_product_variation() public WC 1.0

Find a matching (enabled) variation within a variable product.

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

No Hooks.

Return

Int. Matching variation ID or 0.

Usage

$WC_Product_Data_Store_Interface = new WC_Product_Data_Store_Interface();
$WC_Product_Data_Store_Interface->find_matching_product_variation( $product, $match_attributes );
$product(WC_Product) (required)
Variable product object.
$match_attributes(array)
Array of attributes we want to try to match.

Code of WC_Product_Data_Store_Interface::find_matching_product_variation() WC 5.0.0

<?php
public function find_matching_product_variation( $product, $match_attributes = array() );