jetpack_googleplus_embed_handler

The Jetpack by WordPress.com jetpack googleplus embed handler function.

Description

jetpack_googleplus_embed_handler( $matches, $attr, $url ); 

Parameters (3)

0. $matches
The matches.
1. $attr
The attr.
2. $url
The url.

Usage

  1. if ( !function_exists( 'jetpack_googleplus_embed_handler' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortcodes/googleplus.php'; 
  3.  
  4. // The matches. 
  5. $matches = null; 
  6.  
  7. // The attr. 
  8. $attr = null; 
  9.  
  10. // The url. 
  11. $url = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = jetpack_googleplus_embed_handler($matches, $attr, $url); 
  15.  

Defined (1)

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

/modules/shortcodes/googleplus.php  
  1. function jetpack_googleplus_embed_handler( $matches, $attr, $url ) { 
  2. static $did_script; 
  3.  
  4. if ( ! $did_script ) { 
  5. $did_script = true; 
  6.  
  7. return sprintf( '<div class="g-post" data-href="%s"></div>', esc_url( $url ) );