You appear to be a bot. Output may be restricted
Description
Adds Download product price to oembed display
Usage
$void = edd_add_oembed_price();
Parameters
Returns
void
Source
File name: easy-digital-downloads/includes/template-functions.php
Lines:
1 to 20 of 20
function edd_add_oembed_price() { if( 'download' !== get_post_type( get_the_ID() ) ) { return; } $show = ! get_post_meta( get_the_ID(), '_edd_hide_purchase_link', true ); if ( apply_filters( 'edd_show_oembed_purchase_links', $show ) ) { echo '<style>.wp-embed-edd-price { margin: 20px 0 0 0; }</style>'; echo '<div class="wp-embed-edd-price">'; if ( edd_has_variable_prices( get_the_ID() ) ) { echo edd_price_range( get_the_ID() ); } else { edd_price( get_the_ID(), true ); } echo '</div>'; } }