wc_update_profile_last_update_time

Hooks into the `profile_update` hook to set the user last updated timestamp.

Description

wc_update_profile_last_update_time( (int) $user_id, (array) $old ); 

Parameters (2)

0. $user_id (int)
The user that was updated.
1. $old (array)
The profile fields pre-change.

Usage

  1. if ( !function_exists( 'wc_update_profile_last_update_time' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-user-functions.php'; 
  3.  
  4. // The user that was updated. 
  5. $user_id = -1; 
  6.  
  7. // The profile fields pre-change. 
  8. $old = array(); 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wc_update_profile_last_update_time($user_id, $old); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-user-functions.php  
  1. function wc_update_profile_last_update_time( $user_id, $old ) {