Dear @Chris0483,
We hope this message finds you well.
Please accept our apologies for the delayed response, as our team was out of office over the weekend.
We have updated the custom code as shown below, and it is now functioning as expected:
add_filter('viwec_register_email_type', 'n2t_viwec_register_email_type');
function n2t_viwec_register_email_type($emails){
$emails['yith_ars_new_request_admin_email'] = [
'name' => __( 'YITH Advanced Refund System: New request - email for admin', 'xstore-core' ),
];
$emails['yith_ars_new_message_admin_email'] = [
'name' => __( 'YITH Advanced Refund System: New message - email for admin', 'xstore-core' ),
];
return $emails;
}
add_filter('viwec_accept_email_type', function($emails) {
$emails[] = 'yith_ars_new_request_admin_email';
$emails[] = 'yith_ars_new_message_admin_email';
return $emails;
}, 100);
add_filter('viwec_admin_email_types', function($emails) {
$emails[] = 'yith_ars_new_request_admin_email';
$emails[] = 'yith_ars_new_message_admin_email';
return $emails;
}, 100);
Could you kindly review the changes and let us know if everything looks good on your end?
Thank you for your time and support.
Best regards,
The 8Theme Team















