After import reindex

0.0/5
<?php
function reindex_filters( $import_id, $import ) {
	jet_smart_filters()->indexer->index_filters();
}
add_action( 'pmxi_after_xml_import', 'reindex_filters', 10, 2 );

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

This snippet refreshes the indexing system after import.

Author

Tags