I want to show HTML text after the short description on the product page, but only on specific products that are in a specific category (categories).
I think I have to use in_category, but I can't figure out how to display the text right after the short description.
My preference is to work with a function/filter/action.
This code works:
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 );
But this one works on all product pages..