Created
April 22, 2019 18:30
-
-
Save jchristopher/a19fbbb0acb38fac03bb72eabfe06402 to your computer and use it in GitHub Desktop.
Prevent SearchWP from removing ACF repeatables sub-fields from the Custom Fields dropdown
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_repeatable_children', function( $remove, $context ) { | |
// TODO: Determine whether ACF sub-fields should be removed from the Custom Fields dropdown. | |
return $remove; // true/false | |
}, 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment