Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_API_Authentication::update_api_key_last_access( int $key_id )
Updated API Key last access datetime
Description Description
Parameters Parameters
- $key_id
-
(Required)
Source Source
File: includes/legacy/api/v2/class-wc-api-authentication.php
private function update_api_key_last_access( $key_id ) { global $wpdb; $wpdb->update( $wpdb->prefix . 'woocommerce_api_keys', array( 'last_access' => current_time( 'mysql' ) ), array( 'key_id' => $key_id ), array( '%s' ), array( '%d' ) ); }
Changelog Changelog
Version | Description |
---|---|
2.4.0 | Introduced. |