Skip to content

Commit 2d07eb0

Browse files
authored
fix: Support for product variations added to CPT resolution (#834)
1 parent 17b59fb commit 2d07eb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

includes/class-acf-schema-filters.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public static function resolve_post_object_source( $source, $value ) {
6363
case 'product':
6464
$source = new Model\Product( $post->ID );
6565
break;
66+
case 'product_variation':
67+
$source = new Model\Product_Variation( $post->ID );
68+
break;
6669
}
6770
}
6871

0 commit comments

Comments
 (0)