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


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: