How to Write Name in Upper case in Learndash Course Certificate

learndash course certificate

The default formatting of the First Name & Last Name in the certificate issued to a learndash course student is Sentence Case. But if you want to show the First Name and Last Name in Upper case, how do you do that. Well, it is very much doable by a combination of a free plugin and a snippet code.

What do you need?

You need a free plugin called Code Snippet and following code . Watch how easy it is in the video below

add_filter('learndash_usermeta_shortcode_field_value_display','wdm_learndash_usermeta_shortcode_field_value_display_callback',10,2);
function wdm_learndash_usermeta_shortcode_field_value_display_callback($value,$attr){
if($attr['field'] == 'first_name' || $attr['field'] == 'last_name'){
return strtoupper($value);
}
return $value;
}

Video on Creating Uppercase Name in Learndash Certificate