Tuesday, August 23, 2022
HomeWordPress Developmentplugin improvement - Take away Merchandise From Class

plugin improvement – Take away Merchandise From Class


I wish to take away all merchandise from a particular class. I believed an answer however I am unsure that its one of the best ways? It loops all merchandise and take away the required product_cat time period.

One other answer thought was deleting class. I digged into woocommerce recordsdata.. wp_delete_term($id, "product_cat") is deletes class and removes the class time period from merchandise. This may very well be superior if it wasn’t delete class taxonomy 🙂

Is there a method to do that? One thing like this wp_remove_object_terms($product_id, $category_id, 'product_cat'); . Simply I do not need this motion for a particular product.. I wish to take away this class from all merchandise.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments