facebook

The Jetpack by WordPress.com facebook shortcode.


Usage

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

Defined (1)

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

/modules/shortcodes/facebook.php  
  1. ); 
  2. return $embed; 
  3.  
  4. add_shortcode( 'facebook', 'jetpack_facebook_shortcode_handler' ); 
  5.  
  6. function jetpack_facebook_shortcode_handler( $atts ) { 
  7. global $wp_embed; 
  8.  
  9. if ( empty( $atts['url'] ) )