jetpack_bitly_og_tag

The Jetpack by WordPress.com jetpack bitly og tag function.

Description

(null) jetpack_bitly_og_tag(); 

Returns (null)


Usage

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

Defined (1)

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

/3rd-party/bitly.php  
  1. function jetpack_bitly_og_tag() { 
  2. if( has_filter( 'wp_head', 'jetpack_og_tags') === false ) { 
  3. // Add the bitly part again back if we don't have any jetpack_og_tags added 
  4. $GLOBALS['bitly']->og_tags(); 
  5. } elseif ( isset( $GLOBALS['posts'] ) && $GLOBALS['posts'][0]->ID > 0 ) { 
  6. printf( "<meta property=\"bitly:url\" content=\"%s\" /> \n", esc_attr( $GLOBALS['bitly']->get_bitly_link_for_post_id( $GLOBALS['posts'][0]->ID ) ) ); 
  7.