Skip to content

Instantly share code, notes, and snippets.

@joshhartman
Created August 13, 2020 21:26
Show Gist options
  • Save joshhartman/2e81571ce0dd2748a450060b74fdcd4e to your computer and use it in GitHub Desktop.
Save joshhartman/2e81571ce0dd2748a450060b74fdcd4e to your computer and use it in GitHub Desktop.
Override FreeSSL WordPress plugin domain exclusion list
<?php
// Override FreeSSL plugin domain exclusion list
add_filter('option_exclude_domains_auto_install_free_ssl', function ($data) {
$custom_data = array('domains_to_exclude' => array('mail.mydomain.com'));
if(isset($data['domains_to_exclude'])){
$data['domains_to_exclude'] = array_merge($data['domains_to_exclude'], $custom_data['domains_to_exclude']);
return $data;
}
return $custom_data;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment