Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( wc_customer_bought_product( $current_user->user_email, $current_user->ID, $product->get_id(); ) ) echo '<div class="user-bought">♥ Hey ' . $current_user->first_name . ', you've purchased this in the past. Buy again?</div>',}
Add Comment
Please, Sign In to add comment