updated plugin Easy Digital Downloads version 3.1.1.2

This commit is contained in:
2023-03-17 22:34:04 +00:00
committed by Gitium
parent e8a66564bd
commit 19e086d1c4
647 changed files with 20986 additions and 27305 deletions

View File

@ -40,6 +40,15 @@ class EDD_Email_Summary {
*/
private $email_options;
/**
* Image URI Path
*
* @since 3.1.1
*
* @var string
*/
private $image_path = 'https://plugin.easydigitaldownloads.com/cdn/summaries/';
/**
* Class constructor.
*
@ -281,7 +290,11 @@ class EDD_Email_Summary {
)
);
$new_customers = $stats->get_customer_count();
$new_customers = $stats->get_customer_count(
array(
'purchase_count' => true,
)
);
$top_selling_products = $stats->get_most_valuable_order_items(
array(
@ -321,7 +334,7 @@ class EDD_Email_Summary {
ob_start();
?>
<?php if ( $relative_data['comparable'] ) : ?>
<img src="<?php echo esc_url( EDD_PLUGIN_URL . '/assets/images/icons/' . $arrow ); ?>" width="12" height="10" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: 12px; height: 10px; max-width: 100%; clear: both; vertical-align: text-top;">
<img src="<?php echo esc_url( $this->image_path . $arrow ); ?>" width="12" height="10" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: 12px; height: 10px; max-width: 100%; clear: both; vertical-align: text-top;">
<?php endif; ?>
<span style="padding-left: 1px;">
<?php echo esc_html( $output ); ?>