facetwp wp import index all

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php

/** do full re-index after wp all import **/
function fwp_import_posts() {
if ( function_exists( ‘FWP’ ) ) {
FWP()->indexer->index();
}
}
add_action( ‘pmxi_after_xml_import’, ‘fwp_import_posts’ );
{{/gist}}