mirror of
https://github.com/ryanhalliday/woocommerce-ddrp.git
synced 2025-10-04 04:22:17 +08:00
Fix: use wp_get_current_user...
This commit is contained in:
parent
640bf74b6c
commit
cf78f45e38
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ function som_repeat_purchase_buttons() {
|
|||
$once = 0;
|
||||
$end = false;
|
||||
|
||||
if ( wc_customer_bought_product( get_current_user()->user_email, get_current_user_id(), $product->get_id() ) && ($product->downloadable == 'yes') ) {
|
||||
if ( wc_customer_bought_product( wp_get_current_user()->user_email, get_current_user_id(), $product->get_id() ) && ($product->downloadable == 'yes') ) {
|
||||
|
||||
if ($customers_downloadable_products === 0){
|
||||
$customer = WC()->customer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue