wc_set_user_last_update_time( int $user_id )
Sets a user’s “last update” time to the current timestamp.
Description Description
Parameters Parameters
- $user_id
-
(Required) The user to set a timestamp for.
Source Source
File: includes/wc-user-functions.php
function wc_set_user_last_update_time( $user_id ) { update_user_meta( $user_id, 'last_update', gmdate( 'U' ) ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |