Automattic\WooCommerce\Internal\AddressProvider

AbstractAutomatticAddressProvider::delete_cached_optionprivateWC 1.0

Deletes the cached option.

Method of the class: AbstractAutomatticAddressProvider{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->delete_cached_option( $key );
$key(string) (required)
The key of the option.

AbstractAutomatticAddressProvider::delete_cached_option() code WC 10.3.3

private function delete_cached_option( $key ) {
	if ( delete_option( $this->id . '_' . $key ) ) {
		wp_cache_delete( $this->id . '_' . $key, 'options' );
	}
}