Sharing : Share by email [improvement]
-
Hi,
I’ve tried the sharing by email option and I would like to know if it’s possible to change the content of the email sent.
IMHO, this email looks too much like those spammy email you receive saying. “Amazing site:
spam link
“How could I change the following:
“XXX thinks you may be interested in the following post:title + link
“and add the excerpt or meta description to give more details about the post. That’s an email not a tweet ??
I found this so far:
function sharing_email_send_post( $data ) { $content = sprintf( __( '%1$s (%2$s) thinks you may be interested in the following article:'."\n\n", 'jetpack' ), $data['name'], $data['source'] ); $content .= $data['post']->post_title."\n"; $content .= get_permalink( $data['post']->ID )."\n"; wp_mail( $data['target'], '['.__( 'Shared Post', 'jetpack' ).'] '.$data['post']->post_title, $content ); }
How do I add the excerpt for example?
Thanks for your help.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Sharing : Share by email [improvement]’ is closed to new replies.