github_gist_embed_handler

Handle gist embeds.

Description

github_gist_embed_handler( $matches, $attr, $url, $rawattr ); 

Parameters (4)

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

Usage

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

Defined (1)

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

/modules/shortcodes/gist.php  
  1. function github_gist_embed_handler( $matches, $attr, $url, $rawattr ) { 
  2. // Let the shortcode callback do all the work 
  3. return github_gist_shortcode( $attr, $url );