Thiol-disulfide oxidoreductase involved in the redox regulation of enzyme of the oxidative pentose phosphate pathway. Under reducing conditions, inhibits the glucose-6-phosphate dehydrogenase. Belongs to the thioredoxin family. Plant M-type subfamily.