Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created April 22, 2019 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/97ecd4bd303d4ed94d21c2fdd9ad2472 to your computer and use it in GitHub Desktop.
Save jchristopher/97ecd4bd303d4ed94d21c2fdd9ad2472 to your computer and use it in GitHub Desktop.
Customize whether individual ACF field references are removed in SearchWP
<?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