ID, 'first_name', true);
$last_name = get_user_meta($admin_user->ID, 'last_name', true);
$admin_full_name = trim("$first_name $last_name");
// Fallback to display name if full name is not set
if (empty($admin_full_name)) {
$admin_full_name = $admin_user->display_name;
}
} else {
$admin_full_name = 'Unknown';
}
// phpcs:disable PluginCheck.CodeAnalysis.Offloading.OffloadedContent -- False positive for this context: these are HTML email bodies and remote documentation/tutorial links in admin help text, not offloaded plugin assets. Audited 2026-07-16.
// phpcs:disable WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet -- HTML email body; wp_enqueue_style() has no effect in a mail. Audited 2026-07-16.
$emailTemplate = '