facetwp wp import index all
<?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' );