Skip to content

Commit 27bcba1

Browse files
Added a deprecation to the old Geolite library wrapper class' public methods
1 parent c34a5b6 commit 27bcba1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

includes/class-wc-geolite-integration.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* Geolite integration class.
18+
*
19+
* @deprecated 3.9.0
1820
*/
1921
class WC_Geolite_Integration {
2022

@@ -47,8 +49,11 @@ public function __construct( $database ) {
4749
*
4850
* @param string $ip_address User IP address.
4951
* @return string
52+
* @deprecated 3.9.0
5053
*/
5154
public function get_country_iso( $ip_address ) {
55+
wc_deprecated_function( 'get_country_iso', '3.9.0' );
56+
5257
$iso_code = '';
5358

5459
try {

0 commit comments

Comments
 (0)