'How to hook CT to CPT on adding new post in wp-admin?

I have CPT and CT in place. When I am adding new post I am selecting taxonomy with ACF fields. But I want to hook the selected CT to post. So I will be able to query easily.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source