Use the following function, which works for aaPanel, Cloudron, cPanel, CyberPanel, FastPanel, HestiaCP, InterWorx, ISPConfig, KeyHelp, Mailcow, Mailu, Modoboa, myVesta, Poste, Ploi, SPanel, 20i/StackCP, VestaCP, Virtualmin, Webuzo and WildDuck integrations only for now, to get a domain’s DKIM key and ensure that you are using WP Email Manager V 1.0.12+. Please note that this will only work if the domain has an existing DKIM key.
Function Usage
/**
* Get a domain's DKIM key
*/
$dkim_key = wp_email_manager_get_dkim_key('domain.com');
if( $dkim_key )
{
// Do Something
}