sharing_email_send_post

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

Description

sharing_email_send_post( $data ); 

Parameters (1)

0. $data
The data.

Usage

  1. if ( !function_exists( 'sharing_email_send_post' ) ) { 
  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($data); 
  9.  

Defined (1)

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

/modules/sharedaddy/sharedaddy.php  
  1. function sharing_email_send_post( $data ) { 
  2.  
  3. $content = sharing_email_send_post_content( $data ); 
  4. $headers[] = sprintf( 'From: %1$s <%2$s>', $data['name'], $data['source'] ); 
  5.  
  6. wp_mail( $data['target'], '['.__( 'Shared Post', jetpack ).'] '.$data['post']->post_title, $content, $headers );