Add profile_update action for password set by admin
-
Hi
Could you please add to the next update use of profile_update action – it is required for the scenario of when the admin sets a password for the user manually.
In class “Expire_User_Passwords” in function “init” add:
add_action( 'profile_update', array( __CLASS__, 'save_user_meta_profile_update' ), 10, 2 );
I’ve implemented the function as such:
public static function save_user_meta_profile_update($user_id, $old_user_data){ update_option('onecity_save_user_meta_profile_update_' . microtime(true), json_encode($user_id)); self::save_user_meta($user_id); }
I much appreciate your help on this.
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add profile_update action for password set by admin’ is closed to new replies.