Bug: edd_get_users_purchased_products
-
Hi,
I want to show purchased products (status = complete) for the current user.
I found https://edd.wp-a2z.org/oik_api/edd_get_users_purchased_products/
But it has problem! It shows products with any status! (complete, pending, …)Are you sure that it works truly? Can you help that what is the problem?
I tested these:
1.$user = get_current_user_id(); $test = edd_get_users_purchased_products( $user ); var_dump($test);
2.
$user = get_current_user_id(); $status = 'complete'; $test = edd_get_users_purchased_products( $user , $status ); var_dump($test);
But output is the information of purchased products with any status! (complete, pending, …)
I used this to show purchased products:
$user = get_current_user_id(); $test = edd_get_users_purchased_products( $user ); foreach ($test as $key => $value) { foreach ($value as $Skey => $Svalue) { echo $Skey . " ---> " . $Svalue . "<br>"; } }
Can you test this function to sure that is work true or not?!
Thank you for help
https://www.ads-software.com/plugins/easy-digital-downloads/
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Bug: edd_get_users_purchased_products’ is closed to new replies.