Skip to content

Commit 83b2108

Browse files
committed
switch to index_row method to fix issue with variations indexing
1 parent 52e5e69 commit 83b2108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

facetwp-p2p.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function p2p_indexer( $bypass, $defaults ) {
174174
* @param string $connexion P2P connexion's name.
175175
*/
176176
$new_params = apply_filters( 'facetp2p_p2p_index_params', $new_params, $connexion );
177-
FWP()->indexer->insert( $new_params );
177+
FWP()->indexer->index_row( $new_params );
178178
}
179179

180180
return true;
@@ -244,7 +244,7 @@ public function p2pmetas_indexer( $bypass, $defaults ) {
244244
* @param string $p2p_column Current P2P connexion side.
245245
*/
246246
$new_params = apply_filters( 'facetp2p_p2pmeta_index_params', $new_params, (int) $p2p_id, $field_name, $connexion_type, $p2p_column );
247-
FWP()->indexer->insert( $new_params );
247+
FWP()->indexer->index_row( $new_params );
248248
}
249249
}
250250

0 commit comments

Comments
 (0)