Function bkap_find_matching_product_variation
This function will return the variation ID of default variation for a given variable product.
Parameters summary
WC_Product |
$product |
<ul> <li>Product</li> </ul> |
array |
$attributes |
<ul> <li>Array of default attribute values</li> </ul> |
Return value summary
integer
|
Default Variation ID |