Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Deprecated: get_used_coupons is deprecated since version 3 #45

Closed
glagonikas opened this issue Oct 12, 2021 · 0 comments · Fixed by #54 · May be fixed by #46
Closed

PHP Deprecated: get_used_coupons is deprecated since version 3 #45

glagonikas opened this issue Oct 12, 2021 · 0 comments · Fixed by #54 · May be fixed by #46

Comments

@glagonikas
Copy link

We seem to be getting errors like the one below, caused by this plugin

PHP Deprecated: get_used_coupons is deprecated since version 3.7! Use WC_Abstract_Order::get_coupon_codes instead.

As the error states, the plugin uses a function that has been deprecated.

That code can be found at
https://github.com/weDevsOfficial/woocommerce-conversion-tracking/blob/v2.0.9/includes/integration.php#L307
and
https://github.com/weDevsOfficial/woocommerce-conversion-tracking/blob/v2.0.9/includes/integrations/class-integration-custom.php#L121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant