1add_filter( 'woocommerce_get_price_html', 'njengah_text_after_price' );
2
3function njengah_text_after_price($price){
4
5 global $post;
6
7 $product_id = $post->ID;
8
9 $product_array = array( 1,2,3 );//add in the product IDs to add text after price
10
11 if ( in_array( $product_id, $product_array )) {
12
13 $text_to_add_after_price = ' text to add after price for the specific products '; //change text in bracket to your preferred text
14
15 return $price . $text_to_add_after_price;
16
17 }else{
18
19 return $price;
20 }
21
22}
23