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.


Top ↑

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' ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.