Share shortcode - edit default email message

Hi,

I would like to change the default message in emails created via the [Share] Shortcode. Is there an easy way to do this? I am using a child theme with Renew stack. There’s an example of the buttons here.

Currently the text says:

Hey, thought you might enjoy this! Check it out when you have a chance:

Thank you.

Derek

Hi @colderik,

Thanks for posting in.

Please add this code to your child theme’s functions.php

add_filter( 'gettext', 'change_some_texts', 20, 3 );

function change_some_texts( $translated_text, $text, $domain ) {
    return $text == 'Hey, thought you might enjoy this! Check it out when you have a chance:' ? 'YOUR PREFERRED MESSAGE HERE:' : $translated_text;
}

Then just change the YOUR PREFERRED MESSAGE HERE: to your own message.

Cheers!

Thank you for the swift rely. That’s great!

You’re welcome!
Thanks for letting us know that it has worked for you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.