Skip to content

Commit 490310f

Browse files
Merge pull request #456 from Codeinwp/bugfix/447
Fixed duplicate data names error
2 parents 912cc66 + a330951 commit 490310f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/ppom.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function get_meta_id( $product_id ) {
204204
}
205205
}
206206

207-
return apply_filters( 'ppom_product_meta_id', $ppom_product_id, $product_id );
207+
return apply_filters( 'ppom_product_meta_id', is_array( $ppom_product_id ) ? array_unique( $ppom_product_id ) : $ppom_product_id, $product_id );
208208
}
209209

210210
// Properties functions

0 commit comments

Comments
 (0)