• Resolved mohammadr3z

    (@mohammadr3z)


    Hi
    I created a shortcode using the function.
    But I just want to show complete purchases
    Thanks for helping.

    function purchase_count_dashboard() { 
        $user_id = get_current_user_id(); 
    	$customer = new EDD_Customer( $user_id );
    	$customer_count = $customer->purchase_count;
    	printf( $customer_count );
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘View complete purchases only’ is closed to new replies.