use the code in function.php

require get_template_directory() . '/licenses/wpdigipro-adp.php';
$theme_license = new WPDigiPro_Theme_License_Adapter('themes.php', 'textdomain');
$license_data = $theme_license->WPDigiPro_Theme_Get_Code();