In case anyone needs it, this is working for my needs: add_filter(‘acf/get_field_group’, ‘my_change_field_group’); function my_change_field_group($group) { $get_current_screen = get_current_screen(); $get_current_post_type = $get_current_screen->post_type; $my_option = get_field(‘my-option’,’option’); if ( $get_current_post_type == ‘my-cpt’ && $my_option == ‘stuff’ && $group[‘key’] == ‘group_123456789’ ) { $group[‘location’] = array( array( array( ‘param’ => ‘post_type’, ‘operator’ => ‘==’, ‘value’ => ‘my-cpt’, ), … Read more