I want to show HTML text after the short description on the product page, only on specific products that are in a specific category (categories).
My preference to work with a function/filter/action.
function filter_woocommerce_short_description( $post_excerpt ) {
$your_msg='Test';
return $post_excerpt.'<br>'.$your_msg;
};
add_filter( 'woocommerce_short_description','filter_woocommerce_short_description',10, 1 );
Problem is it's working on all product pages..