googleplus

The Jetpack by WordPress.com googleplus shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[googleplus]'); 
  1. // variable usage 
  2. $result = do_shortcode('[googleplus]'); 
  3. echo $result;  

Defined (1)

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

/modules/shortcodes/googleplus.php  
  1. ?> 
  2. <script src="https://apis.google.com/js/plusone.js"></script> 
  3. <?php 
  4.  
  5. add_shortcode( 'googleplus', 'jetpack_googleplus_shortcode_handler' ); 
  6.  
  7. function jetpack_googleplus_shortcode_handler( $atts ) { 
  8. global $wp_embed; 
  9.  
  10. if ( empty( $atts['url'] ) )