From 589e6e9c06da020369d9e986919b5b847cb004a0 Mon Sep 17 00:00:00 2001 From: olatechpro Date: Mon, 18 Dec 2023 17:18:16 +0100 Subject: [PATCH] - User type metadata displaying user id instead of display name in notification #1515 --- lib/Notifications/Shortcodes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Notifications/Shortcodes.php b/lib/Notifications/Shortcodes.php index 189abb59..1065f56f 100644 --- a/lib/Notifications/Shortcodes.php +++ b/lib/Notifications/Shortcodes.php @@ -495,7 +495,7 @@ private function get_post_field($post, $field, $attrs) if (!empty($rel_post) && !is_wp_error($rel_post)) { $result = $this->get_post_field($rel_post, $meta_sub_field, $attrs); } - } elseif ('meta-user' == $arr[0]) { + } elseif ('meta-user' == $arr[0] || strpos($meta_name, '_pp_editorial_meta_user') === 0) { $rel_user = get_user_by('ID', (int)$meta); if (!empty($rel_user) && !is_wp_error($rel_user)) {