Created
August 13, 2020 21:26
-
-
Save joshhartman/2e81571ce0dd2748a450060b74fdcd4e to your computer and use it in GitHub Desktop.
Override FreeSSL WordPress plugin domain exclusion list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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