Warning: This method has been deprecated.
WC_Geolocation::maybe_update_database( string $new_value, string $old_value )
Maybe trigger a DB update for the first time.
Description Description
Parameters Parameters
- $new_value
-
(Required) New value.
- $old_value
-
(Required) Old value.
Return Return
(string)
Source Source
File: includes/class-wc-geolocation.php
public static function maybe_update_database( $new_value, $old_value ) { wc_deprecated_function( 'WC_Geolocation::maybe_update_database', '3.9.0' ); if ( $new_value !== $old_value && self::is_geolocation_enabled( $new_value ) ) { self::update_database(); } return $new_value; }
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |