Home › Forums › Feature Requests › Exclude field group from clone field › Reply To: Exclude field group from clone field
This works
add_filter('acf/get_field_group', 'hide_field_group_from_clone', 20);
function hide_field_group_from_clone($group) {
//ob_start(); echo 'POST'."\r\n";print_r($_POST);error_log(ob_get_clean());
if (isset($_POST['action']) && $_POST['action'] == 'acf/fields/clone/query' && $group['key'] == 'group_5b586829bb34c') {
return false;
}
return $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.