jetpack_extras_sharing_twitter_related

The Custom Tweaks for Jetpack by BarryCarlyon jetpack extras sharing twitter related function.

Description

jetpack_extras_sharing_twitter_related( $related, $post_id ); 

Parameters (2)

0. $related
The related.
1. $post_id
The post id.

Usage

  1. if ( !function_exists( 'jetpack_extras_sharing_twitter_related' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'custom-tweaks-for-jetpack-by-barrycarlyon/modules/sharedaddy/sharing-extras.php'; 
  3.  
  4. // The related. 
  5. $related = null; 
  6.  
  7. // The post id. 
  8. $post_id = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = jetpack_extras_sharing_twitter_related($related, $post_id); 
  12.  

Defined (1)

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

/modules/sharedaddy/sharing-extras.php  
  1. function jetpack_extras_sharing_twitter_related($related, $post_id) { 
  2. $global = get_option( 'jetpack_extras-options', array() ); 
  3. foreach ($global['twitter_related'] as $user => $desc) { 
  4. $related[$user] = $desc; 
  5. return $related;