Could someone please advise how I go about doing a PHP string replace via action or filter (or manipulating the markup) of the single product variation description in WooCommerce?

There doesn’t appear to be any hooks for this.

The above is so that I can turn each line break of the description into a list item.

Read more here: How to do a string replace (or change the markup) of the Woocommerce single product variant description?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: