function code in wordpress, transfer product from one category into another after being sold
₱440 PHP
Paid on delivery
Hi, I needed a function code in wordpress, transfer the products from one category into another after being sold. That's all.
Sample: If I a product has been sold under category slug "tshirt" put the products after being sold into the category slug "tshirt_sold"
Notes:
-Make sure I could change the word slug, the 2 category slug inside the function script code
-Please give me a clean code on where I could duplicate the code, because in the future I may add additional category.
Like for example, I may add "pants" category and shall be put into "pants_sold" category or "keychains" and shall be remain in the same category "keychains"
pants---->trasnfer to----> pants_sold
keychains---->trasnfer to---->keychains (same category)
If you have other method or option, just inform me.
Thankyou
Project ID: #8996259