Add Custom Category Description When Empty
Under the woocommerce product category page, i've been trying to find a way to auto-generated a text to show in that default short description area, if i don't input any description when i was posting that category.
For example , if the category name on this page is : ABC, if i did not input any category description, i want it could auto generate a short description based on this name ABC, i want it to be We stock a wide range of ABC products, as the displayed short description
I installed a snippet input plugin, i searched high low and got to know that i need to use below:
WooCommerce Action Hook – woocommerce_archive_description WooCommerce Conditional Tag – is_product_category()
At this moment, it seems it's beyond my knowledge and ability.....
Topic woocommerce-offtopic description php categories Wordpress
Category Web