Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter magicpriest

    (@magicpriest)

    Hi @atanasangelovdev ,
    Thank you for fast reply.

    I’m here just to say thank you for your work and provide some thoughts during this work.
    So, the way I have chosen is constructing data and Fields. The idea is simple, first of all get what you need (for me it CustomPostType terms and posts which belongs to certain term and pack it in way you like), then construct arrays of fields, for example:

    
    $fieldConstructor[] = 
            Field::make( 'select', $term['term_slug'], $term['term_name'] )
                ->add_options( $term['term_posts'] )
    

    And then add conditional logic in your construction. It’s so awesome, to have all things in one place and manipulating data without annoyance.

    The last thing, is opinion of Devs of this library. Is this dirty or aboutToBeDirty hack?

Viewing 1 replies (of 1 total)