Created
April 21, 2016 12:21
-
-
Save jchristopher/de5fa08dab8e0b6770f6f3b4705b7759 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_acf_save_post_searchwp( $post_id ) { | |
// re-index the post | |
SWP()->purge_post( absint( $post_id ) ); | |
SWP()->trigger_index(); | |
} | |
add_action( 'acf/save_post', 'my_acf_save_post_searchwp', 9999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment