Woocommerce - How to alter product category name with hook?

Efbi

I try to alter category name with hook. My problem is that I import from a CSV file, bad encoding category. (not on my side, so I can't do nothing).

The best solution I saw, is to alter the category name by id.

Each time I will import the file, the category with bad name will be re-created.

So I have to let him wrong but display him well at least on front.

Can we achieve this ? I don't find any hook for this

Efbi

Well I found that renaming the name without changing the slug allows me to change the name without being impacted by my importation !

Problem solved !

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Alter Woocommerce product name for specific product tag

How to add category name for each product in shop page woocommerce

Alter Woocommerce product name when price is on sale

Woocommerce - add last category name to product name

How to set category to product woocommerce

How to check if WooCommerce Product is in a specific category and echo out an image at a specific hook?

Append current category name to product title on woocommerce category archives

WooCommerce Checkout url hook - Change condition based on product category

Get the product category name and description in Woocommerce Single Product page

How to Improve WooCommerce Product Category Thumbnail Quality?

How to add a category programmatically to a WooCommerce product?

How to check if a page is category or product in woocommerce?

How to change the product category menu in Woocommerce?

How to check if a certain product category is empty in WooCommerce?

How to change product category slug in bulk in Woocommerce?

Woocommerce: Product Category Widget

Get the category name from a WooCommerce product using the product id or the category id

Check a product category for a product in Woocommerce

Show How Old The Product is on Product Page using WooCommerce Action Hook

Edit product hook Woocommerce

How to get a category from a product using the useEffect hook?

how to get category name of current product (on product detail page) in magento

Woocommerce: How to show Product Attribute name on title when in a category page and "filtering" products via '?pa_attribute=' on address bar

Issue with WooCommerce WC_Product set_category_ids() method in ACF "acf/save_post" hook

woocommerce category and subcategory title hook

How to get product category ids from order items in WooCommerce

How can I set tab (only) if the product is in a certain category WooCommerce

How to programatically set the category for a new Woocommerce Product Creation?

How to modify and style WooCommerce product category count NUMBER in sidebar widget