How to add custom SPF record


Is there a possibility to add custom SPF record to show while any use setting up sender domain. Currently it is creating based on IP and domain associated with Mailwizz.
Since next release there are two filter hooks you can use for this, as in:
sending_domain_get_dns_txt_spf_record and sending_domain_get_dns_txt_dkim_record
Yii::app()->hooks->addFilter('sending_domain_get_dns_txt_spf_record', function($record, $sendingDomain, $smtpHosts){
     return sprintf('%s.      IN TXT     "v=spf1 mx a ptr %s ~all"', $sendingDomain->name, implode(" ", $smtpHosts));
I want it is to change directly into mailwizz sources. currently it is creating suggested sfp record based on hostname and IPs of delivery server. My concern it to add my own suggested spf record , so when any one add sender domain, they would see it.

problem in current auto generated is that it generates unnecessary long record.