scribd

The Jetpack by WordPress.com scribd shortcode.


Usage

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

Defined (1)

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

/modules/shortcodes/scribd.php  
  1. <div style="font-size:10px;text-align:center;width:100%"><a href="http://www.scribd.com/doc/$atts[id]">View this document on Scribd</a></div> 
  2. EOD; 
  3.  
  4. return $markup; 
  5. add_shortcode( 'scribd', 'scribd_shortcode_handler' ); 
  6.  
  7. // Scribd supports HTTPS, so use that endpoint to get HTTPS-compatible embeds 
  8. function scribd_https_oembed( $providers ) { 
  9. if ( isset( $providers['#https?://(www\.)?scribd\.com/doc/.*#i'] ) ) { 
  10. $providers['#https?://(www\.)?scribd\.com/doc/.*#i'][0] = 'https://www.scribd.com/services/oembed';