downloads

The Easy Digital Downloads downloads shortcode.


Usage

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

Defined (1)

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

/includes/shortcodes.php  
  1. $display = sprintf( _x( 'No %s found', 'download post type name', 'easy-digital-downloads' ), edd_get_label_plural() ); 
  2. endif; 
  3.  
  4. return apply_filters( 'downloads_shortcode', $display, $atts, $atts['buy_button'], $atts['columns'], '', $downloads, $atts['excerpt'], $atts['full_content'], $atts['price'], $atts['thumbnails'], $query ); 
  5. add_shortcode( 'downloads', 'edd_downloads_query' ); 
  6. add_shortcode( 'edd_downloads', 'edd_downloads_query' ); 
  7.  
  8. /** 
  9. * Price Shortcode