Automattic\WooCommerce\Internal\AddressProvider
AbstractAutomatticAddressProvider::delete_cached_option
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() 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' );
}
}