I am trying to create an automatic text in the description of the WooCommerce articles and put "article only available in the store."
I thought about putting it inside a function like this:
add_filter ('woocommerce_short_description', 'in_single_product', 10, 2);
function in_single_product () {
echo '<p> my-text-here </ p>';
}
But the text does not appear in the front-end. It only appears if I put the text on the back-end.
Does anyone know why this happens?