sharing_restrict_to_single

The Jetpack by WordPress.com sharing restrict to single function.

Description

sharing_restrict_to_single( $services ); 

Parameters (1)

0. $services
The services.

Usage

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

Defined (1)

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

/modules/sharedaddy/sharedaddy.php  
  1. function sharing_restrict_to_single( $services ) { 
  2. // This removes Press This from non-multisite blogs - doesn't make much sense 
  3. if ( is_multisite() === false ) { 
  4. unset( $services['press-this'] ); 
  5.  
  6. return $services;