sharing_email_send_post_content

The Jetpack by WordPress.com sharing email send post content function.

Description

sharing_email_send_post_content( $data ); 

Parameters (1)

0. $data
The data.

Usage

  1. if ( !function_exists( 'sharing_email_send_post_content' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/sharedaddy/sharedaddy.php'; 
  3.  
  4. // The data. 
  5. $data = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = sharing_email_send_post_content($data); 
  9.  

Defined (1)

The function is defined in the following location(s).

/modules/sharedaddy/sharedaddy.php  
  1. function sharing_email_send_post_content( $data ) { 
  2. /** translators: included in e-mail when post is shared via e-mail. First item is sender's name. Second is sender's e-mail address. */ 
  3. $content = sprintf( __( '%1$s (%2$s) thinks you may be interested in the following post:', jetpack ), $data['name'], $data['source'] ); 
  4. $content .= "\n\n"; 
  5. $content .= $data['post']->post_title."\n"; 
  6. $content .= get_permalink( $data['post']->ID )."\n"; 
  7. return $content;