wc_set_user_last_update_time()WC 2.6.0

Sets a user's "last update" time to the current timestamp.

No Hooks.

Return

null. Nothing (null).

Usage

wc_set_user_last_update_time( $user_id );
$user_id(int) (required)
The user to set a timestamp for.

Changelog

Since 2.6.0 Introduced.

wc_set_user_last_update_time() code WC 8.7.0

function wc_set_user_last_update_time( $user_id ) {
	update_user_meta( $user_id, 'last_update', gmdate( 'U' ) );
}