There’s a variety of ways to add threaded holes to 3D printed objects. You can tap a hole, but the plastic isn’t always strong enough. Nut traps work, but aren’t very attractive and can be difficult to get exactly the right size. If you try to enclose them, you have to add a manual step to your printing process, too. You can buy threaded inserts (see video below) but that means some other piece of hardware to have to stock in your shop.
[PeterM13] had a different idea: Cut a piece of threaded stock, put nuts on the end and heat it up to let the nuts reform the plastic. This way the nut traps wind up the perfect size by definition. He used two nuts aligned and secured with thread locker. Then he used a hot air gun to only heat the metal (so as to reduce the chance of deforming the actual part). Once it was hot (about 15 seconds) he pulled the nuts into the open hole, where it melted the plastic which grips the nuts once cooled again.