Available since: 3.0
searchwp_acf_remove_repeatable_child
View Parameters »By default SearchWP will omit sub-fields from Advanced Custom Fields repeatable fields (e.g. Repeater) in favor of using SearchWP’s ACF Repeatables support but you can use this hook to control whether individual fields are omitted from the Custom Field dropdown in the engine configuration UI:
See also: searchwp_acf_remove_repeatable_children
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_child', function( $remove, $context ) { | |
// TODO: Determine whether this field should be removed. | |
reeturn $remove; // true/false | |
}, 20, 2 ); |
Parameters
Parameter | Type | Description |
---|---|---|
$remove |
Boolean |
Whether this ACF sub-field should be omitted from the Custom Fields dropdown |
$context |
Array |
|