Created
April 22, 2019 16:54
-
-
Save jchristopher/97ecd4bd303d4ed94d21c2fdd9ad2472 to your computer and use it in GitHub Desktop.
Customize whether individual ACF field references are removed in SearchWP
This file contains 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 | |
add_filter( 'searchwp_acf_remove_field_reference', function( $remove, $context ) { | |
// TODO: Determine whether this field should be removed. | |
return $remove; // true/false | |
}, 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment