Support

Account

Home Forums General Issues taxonomy field – filter to only show parents Reply To: taxonomy field – filter to only show parents

  • @pooya is correct, field['_name'] works for checklists (not select or multiselect) taxonomy fields.

    function taxonomy_depth( $args, $field ) {
        if( 'TAXONOMY_NAME' === $field['_name'] ) {
            $args['depth'] = 1;
        }
        return $args;
    }