mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 20:53:39 +09:00
Fixes the hierarchy of actions and adds a new filter hook
New filter hook: `um_user_pre_updating_files_array`
This commit is contained in:
@@ -109,14 +109,17 @@
|
||||
|
||||
if ( is_array( $to_update ) ) {
|
||||
$ultimatemember->user->update_profile( $to_update );
|
||||
do_action('um_after_user_updated', um_user('ID') );
|
||||
|
||||
}
|
||||
|
||||
$files = apply_filters('um_user_pre_updating_files_array', $files);
|
||||
|
||||
if ( is_array( $files ) ) {
|
||||
$ultimatemember->user->update_files( $files );
|
||||
do_action('um_after_user_upload', um_user('ID'), $files );
|
||||
}
|
||||
|
||||
do_action('um_after_user_updated', um_user('ID') );
|
||||
do_action('um_after_user_upload', um_user('ID') );
|
||||
do_action('um_user_after_updating_profile', $to_update );
|
||||
do_action('um_update_profile_full_name', $to_update );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user