WordPress at Your Fingertips
function is not described

WC_REST_Authentication::update_last_access() private WC 1.0

Updated API Key last access datetime.

{} It's a method of the class: WC_REST_Authentication{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->update_last_access();

Code of WC_REST_Authentication::update_last_access() WC 5.9.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' )
	);
}