Hello
It requires some custom code. Here is an example:
add_filter( 'wptelegram_p2tg_post_data_post_title_value', function ( $value, $post ) {
$value = preg_replace( '/\sBuy\sPrice.+/', '', $value );
return $value;
}, 10, 2 );
Should I paste this on Message Template box?
No, it’s PHP code. You can add it ti functions.php of your child theme.
after that I have to use {post_title} in Message Template box?
but in this way we online can cut the value after Buy Price.
How can I cut multiple values. Like Buy Price, Sell, Big Deal etc?
That is just an example. You can update the code as per your needs.
can you please give me example of multiple values? Because I am not an expert in coding. I googled but there is different different codes. If possible please provide me example for multiple values.
Here is such an example
add_filter( 'wptelegram_p2tg_post_data_post_title_value', function ( $value, $post ) {
$value = preg_replace( '/\s(Buy Price|Big Deal|Sell).+/i', '', $value );
return $value;
}, 10, 2 );