How to change the table heading in emails

The following snippet allows you to change the table heading “Your digital license(s)” in emails.

To apply it, add the snippet in your theme’s functions.php or as a mu-plugin.

/**
 * Changes the email heading text
 * @url https://docs.codeverve.com/digital-license-manager/how-to-change-the-table-heading-in-emails/
 * @param $text
 *
 * @return string
 */
function dlm_change_email_heading_981291($text) {
	$text = 'Licenses';
	return $text;
}
add_filter('dlm_licenses_table_heading', 'dlm_change_email_heading_981291');