Support » Plugin: EU/UK VAT Manager for WooCommerce » Deprecated since version 4.0.0 – Use WC_Countries::get_vat_countries

  • Resolved cebbi

    (@cebbi)


    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.php and 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!

    • This topic was modified 2 years, 9 months ago by cebbi.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deprecated since version 4.0.0 – Use WC_Countries::get_vat_countries’ is closed to new replies.