From edad4d4c99e6939504e42bf8ea8558196a1e7959 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Thu, 18 Aug 2016 16:09:04 +0800 Subject: [PATCH] Add filter hook to modify first and last name cases --- core/um-short-functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/um-short-functions.php b/core/um-short-functions.php index 15781ab6..a812ec4c 100644 --- a/core/um-short-functions.php +++ b/core/um-short-functions.php @@ -1379,6 +1379,8 @@ function um_fetch_user( $user_id ) { $name = implode('-', array_map('ucfirst', explode('-', $name ) ) ); } + $name = apply_filters("um_user_{$data}_case", $name ); + return $name; break;