sharing_init

The Jetpack by WordPress.com sharing init function.

Description

sharing_init(); 

Usage

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

Defined (1)

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

/modules/sharedaddy/sharedaddy.php  
  1. function sharing_init() { 
  2. if ( get_option( 'sharedaddy_disable_resources' ) ) { 
  3. add_filter( 'sharing_js', 'sharing_disable_js' ); 
  4. remove_action( 'wp_head', 'sharing_add_header', 1 );