purchase_link

The Easy Digital Downloads purchase link shortcode.


Usage

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

Defined (1)

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

/includes/shortcodes.php  
  1.  
  2. if ( $download ) { 
  3. return edd_get_purchase_link( $atts ); 
  4. add_shortcode( 'purchase_link', 'edd_download_shortcode' ); 
  5.  
  6. /** 
  7. * Download History Shortcode 
  8. * Displays a user's download history.