WordPress doesn’t have an default option to save modified date. So we have save modified date when user updating their profile.
You can save the modified date by adding the following code in your theme’s functions.php file.

/*Save profile modified date*/
function update_profile_modified_date( $user_id ) {
  update_user_meta( $user_id, 'modified_date', date("Y-m-d") );
}
add_action( 'profile_update', 'update_profile_modified_date' );

You can get this date by using get_user_meta() function. for example see below code.

$user_id=25; // replace your user id here
$modified_date = get_user_meta( $user_id, 'modified_date', true ); 

Have any doubt, then comment here!

Leave a Reply

Your email address will not be published. Required fields are marked *