Filter: bricks/acf/filter_field_groups
Filter: bricks/acf/filter_field_groups
Section titled “Filter: bricks/acf/filter_field_groups”Filters the ACF field groups available in the Bricks dynamic data picker. This allows you to exclude specific field groups from appearing in the builder’s dynamic data dropdown.
Parameters
Section titled “Parameters”$groups(array): Array of ACF field groups retrieved viaacf_get_field_groups().
Example usage
Section titled “Example usage”add_filter( 'bricks/acf/filter_field_groups', function( $groups ) { // Loop through groups and unset the one you want to hide foreach ( $groups as $key => $group ) { // Example: Hide field group with key 'group_60f1234567890' if ( $group['key'] === 'group_60f1234567890' ) { unset( $groups[ $key ] ); } }
return $groups;} ); Was this page helpful?