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.


Top ↑

Return Return

(string)


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.