Last active
September 19, 2016 20:52
-
-
Save halgatewood/1bac38b018d4bd9a97ea48aec60f071c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hg_add_estimated_monthly() | |
{ | |
$estimated = edd_estimated_monthly_stats(); | |
?> | |
<div class="postbox metrics-sidebar"> | |
<div class="inside" style="padding-top: 11px;"> | |
<strong><?php _e( 'Estimated monthly earnings: ', 'easy-digital-downloads' ); echo edd_currency_filter( edd_format_amount( $estimated['earnings'] ) ); ?></strong> | |
<hr> | |
<strong><?php _e( 'Estimated monthly sales: ', 'easy-digital-downloads' ); echo edd_format_amount( $estimated['sales'], false ); ?></strong> | |
</div> | |
</div> | |
<?php | |
} | |
add_action('edd_metrics_dash_sidebar', 'hg_add_estimated_monthly'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment