Add third parameter $args to the action hook for Profile Tab redirections

There was an issue with attaching the Profile tab redirection to `um_after_user_updated` because the file couldn't upload in a custom tab because it doesn't reach the `UM()->uploader()->move_temporary_files` after saving the profile with uploaded files and images.

 Attaching it to  `um_user_after_updating_profile` resolves the issue.
This commit is contained in:
Champ Camba
2020-12-16 11:52:07 +08:00
parent 0ee8878f90
commit 43a8e7e3d5
+1 -1
View File
@@ -536,7 +536,7 @@ function um_user_edit_profile( $args ) {
* }
* ?>
*/
do_action( 'um_user_after_updating_profile', $to_update, $user_id );
do_action( 'um_user_after_updating_profile', $to_update, $user_id, $args );
/**
* UM hook