sharing_process_requests

The Jetpack by WordPress.com sharing process requests function.

Description

sharing_process_requests(); 

Usage

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

Defined (1)

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

/modules/sharedaddy/sharing-service.php  
  1. function sharing_process_requests() { 
  2. global $post; 
  3.  
  4. // Only process if: single post and share=X defined 
  5. if ( ( is_page() || is_single() ) && isset( $_GET['share'] ) ) { 
  6. $sharer = new Sharing_Service(); 
  7.  
  8. $service = $sharer->get_service( $_GET['share'] ); 
  9. if ( $service ) { 
  10. $service->process_request( $post, $_POST );