From 8c84efe3f07dbb25de2e66a4ac6fbab70a1927b0 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Tue, 18 Oct 2016 13:19:13 +0800 Subject: [PATCH] Adds a new filter hook to modify submitted details --- core/um-user.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/um-user.php b/core/um-user.php index c8fc17b1..91014e5c 100644 --- a/core/um-user.php +++ b/core/um-user.php @@ -346,6 +346,8 @@ class UM_User { unset( $submitted['confirm_user_password'] ); } + $submitted = apply_filters('um_before_save_filter_submitted', $submitted ); + do_action('um_before_save_registration_details', $this->id, $submitted ); update_user_meta( $this->id, 'submitted', $submitted );