<?php
add_action( 'acf/post2post/relationship_updated', function( $post_id ) {
if ( function_exists( 'FWP' ) ) {
FWP()->indexer->index( $post_id );
}
});
Code snippets for FacetWP
<?php
add_action( 'acf/post2post/relationship_updated', function( $post_id ) {
if ( function_exists( 'FWP' ) ) {
FWP()->indexer->index( $post_id );
}
});