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> article only available in the store. </ p>';
}
But this replace the text that is already written in the short description of the product. If I have not put text, nothing appears.
Is possible put the text of the code "article only available in the store" without a short description of the product?
Thank you.