Hi, I noticed the following error/notice in the admin settings (General):
Deprecated: type was called with an argument that is deprecated since version 4.0.0! Use the WC_Countries::get_vat_countries method instead. in [...]\wp-includes\functions.php on line 4997
This results in an erroneous list of countries shown as a hint for the Show field for selected countries only setting.
This is caused by the call
WC()->countries->get_european_union_countries( '...' )in line 198 of the file
class-alg-wc-eu-vat-settings-general.phpand can be solved by simply removing the string argument. Perhaps a version check would be sensible.
Could you update the plugin to include this fix?
Thanks in advance and have a nice weekend!
- The topic ‘Deprecated since version 4.0.0 – Use WC_Countries::get_vat_countries’ is closed to new replies.