Support

Account

Home Forums Feature Requests Group Options (acf_render_field_wrap) is there an officiel way to do this? Reply To: Group Options (acf_render_field_wrap) is there an officiel way to do this?

  • I can’t get this to work. Using it like so in my functions.php file. When I add a print_r($field_group) It appears below the field settings. So I guess it’s being called too late to be taken into account.

    
    add_action('acf/render_field_group_settings', 'my_function', 10, 1);
    function my_function( $field_group ) {
        
        $field_group['style'] = 'seemless';
        $field_group['menu_order'] = 1;
        $field_group['hide_on_screen'] = array('the_content');
        
        return $field_group;
    }
    

    Using version 5.9.3 with wordpress 5.5.3