diff options
Diffstat (limited to 'plugins/jetpack/modules/sharedaddy/sharedaddy.php')
-rw-r--r-- | plugins/jetpack/modules/sharedaddy/sharedaddy.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/sharedaddy/sharedaddy.php b/plugins/jetpack/modules/sharedaddy/sharedaddy.php index 2bc170e7..c9de29b1 100644 --- a/plugins/jetpack/modules/sharedaddy/sharedaddy.php +++ b/plugins/jetpack/modules/sharedaddy/sharedaddy.php @@ -51,7 +51,18 @@ function sharing_email_send_post( $data ) { // Make sure to pass the title through the normal sharing filters. $title = $data['sharing_source']->get_share_title( $data['post']->ID ); - wp_mail( $data['target'], '[' . __( 'Shared Post', 'jetpack' ) . '] ' . $title, $content, $headers ); + /** + * Filter the Sharing Email Send Post Subject. + * + * @module sharedaddy + * + * @since 5.8.0 + * + * @param string $var Sharing Email Send Post Subject. Default is "Shared Post". + */ + $subject = apply_filters( 'wp_sharing_email_send_post_subject', '[' . __( 'Shared Post', 'jetpack' ) . '] ' . $title ); + + wp_mail( $data['target'], $subject, $content, $headers ); } |