shipping_country was called incorrectly
-
While the plugin is working on the front end perfectly it is returning the following error as the shipping method is called by ->shipping_country while in WC 3.0 it should be called with ->shipping_country()
[18-Apr-2019 04:47:47 UTC] shipping_country was called incorrectly. Customer properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_aino_get_points’), WP_Hook->do_action, WP_Hook->apply_filters, Vc_Aino_Ajax::aino_get_points, Vc_Aino_Pickup_Points->get_points, WC_Legacy_Customer->__get, wc_doing_it_wrong. This message was added in version 3.0.
- The topic ‘shipping_country was called incorrectly’ is closed to new replies.