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

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

PHP Deprecated: get_used_coupons is deprecated since version 3 #45

glagonikas opened this issue Oct 12, 2021 · 0 comments · 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

@glagonikas glagonikas linked a pull request Oct 12, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant