Support

Account

Home Forums Bug Reports acf/prepare_field incomplete? Reply To: acf/prepare_field incomplete?

  • No advance on that issue?
    i tried this

        add_filter('acf/prepare_field/type=tab', 'sagive_validate_extra_tabclass', 10);
        function sagive_validate_extra_tabclass( $field ){
            
            if( !empty($field['tabclass']) ) {
                $field['class']             = 'some-class';
                $field['wrapper']['class']  = 'some-class';
            }
            return $field;
            
        }
    

    Doesnt work (at least on the tab element)… which is where i need it.