Home › Forums › Feature Requests › Exclude field group from clone field › Reply To: Exclude field group from clone field
If you are using a json file you can set the group to private, this is explained on this page. If you are creating the group in php add the private setting, $group['private'] = 1
. If the field group is created some other way you can do this.
add_filter('acf/get_field_group', 'hide_field_groups', 20);
function hide_field_groups($group) {
if ($group['key'] == 'group_5b586829bb34c') {
$group['private'] = 1;
}
return $group;
}
But be aware that if you’re using local JSON you will not be able to sync this group.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.