You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creation of dynamic property WC_States_Places::$plugin_path is deprecated at "wp-content/plugins/states-cities-and-places-for-woocommerce/states-cities-and-places-for-woocommerce.php:304"
Replace:
`private function get_plugin_path() {
if (isset($this->plugin_path)) {
return $this->plugin_path;
}
$path = $this->plugin_path = plugin_dir_path( FILE );
return untrailingslashit($path);
}`
To
`private static $plugin_path;
private function get_plugin_path() {
if (self::$plugin_path) {
return self::$plugin_path;
}
self::$plugin_path = plugin_dir_path( FILE );
return untrailingslashit(self::$plugin_path);
}`
Done.
The text was updated successfully, but these errors were encountered:
Creation of dynamic property WC_States_Places::$plugin_path is deprecated at "wp-content/plugins/states-cities-and-places-for-woocommerce/states-cities-and-places-for-woocommerce.php:304"
Replace:
`private function get_plugin_path() {
if (isset($this->plugin_path)) {
return $this->plugin_path;
}
$path = $this->plugin_path = plugin_dir_path( FILE );
return untrailingslashit($path);
}`
To
`private static $plugin_path;
private function get_plugin_path() {
if (self::$plugin_path) {
return self::$plugin_path;
}
self::$plugin_path = plugin_dir_path( FILE );
return untrailingslashit(self::$plugin_path);
}`
Done.
The text was updated successfully, but these errors were encountered: