@michal549
You can try this code snippet, which will write the Profile update date
to the meta_key um_last_update_profile
add_action( 'um_user_after_updating_profile', 'um_last_update_profile', 10, 3 );
function um_last_update_profile( $to_update, $user_id, $args ) {
update_user_meta( $user_id, 'um_last_update_profile', date_i18n( 'Y/m/d', current_time( 'timestamp' )));
}
Install by adding the code snippet to your active theme’s functions.php file
or use the “Code Snippets” Plugin
https://wordpress.org/plugins/code-snippets/
Thanks a lot!
Is it possible to display the um_last_update_profile in the Member Directory in the tagline or extra information section?
@michal549
Add a field to your Profile form with meta_key = um_last_update_profile
and the Title text will be possible to select in the Members Directory.
-
This reply was modified 1 year, 10 months ago by
missveronica.
What type of the field will be suitable?
@michal549
A “Text box” field.
If you don’t want to keep the Profile Form field
you can remove the Field from the Profile Form
but don’t remove the Field from your Custom Fields
in the Fields Manager popup.
-
This reply was modified 1 year, 10 months ago by
missveronica.