WooCommerce Show Product Total Sales after Custom Date in Frontend

I want to show product total sales after custom date:

I have this code, but i would like to custom it for showing only the total sales after a custom date for example 05/26/2016

function total_sales() {
global $product;
$units_sold = get_post_meta( 206, 'total_sales', true );
echo '<p>' . sprintf( __( 'Units Sold: %s', 'woocommerce' ), $units_sold ) . '</p>';}

Read more here: WooCommerce Show Product Total Sales after Custom Date in Frontend

Leave a Reply

Your email address will not be published. Required fields are marked *