WC_REST_Authentication::update_last_access() private WC 1.0
Updated API Key last access datetime.
{} Это метод класса: WC_REST_Authentication{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// private - только в коде основоного (родительского) класса $result = $this->update_last_access();
Код WC_REST_Authentication::update_last_access() WC REST Authentication::update last access WC 5.0.0
private function update_last_access() {
global $wpdb;
$wpdb->update(
$wpdb->prefix . 'woocommerce_api_keys',
array( 'last_access' => current_time( 'mysql' ) ),
array( 'key_id' => $this->user->key_id ),
array( '%s' ),
array( '%d' )
);
}