php - WordPress Permalink Structure for Custom Post Type
Solution:
You can add filter to post_type_link
Here is the right way : https://wordpress.stackexchange.com/a/22490
Answer
Solution:
Go to settings -> permalink scroll down to Product permalinks and select Common Settings and add this in Custom Structure /%taxonomyname%/posttypename/
Source