Automattic\WooCommerce\Gateways\PayPal
TransactAccountManager::update_transact_account_cache
Update the transact account (merchant or provider) cache.
Метод класса: TransactAccountManager{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->update_transact_account_cache( $cache_key, $account_data ): void;
- $cache_key(строка|null) (обязательный)
- The cache key to update.
- $account_data(массив|true|false) (обязательный)
- The transact account data.
Список изменений
| С версии 10.5.0 | Введена. |
Код TransactAccountManager::update_transact_account_cache() TransactAccountManager::update transact account cache WC 11.2.2
private function update_transact_account_cache( string $cache_key, $account_data ): void {
$expires = time() + self::TRANSACT_ACCOUNT_CACHE_EXPIRY;
update_option(
$cache_key,
array(
'account' => $account_data,
'expiry' => $expires,
)
);
}