/**
  * Setter for a plugin setting with custom hooks
  *
  * @param string $key
  * @param mixed  $value
  */
 function set_setting($key, $value)
 {
     // Run class specific hooks before the setting is saved
     $this->pre_set_setting($key, $value);
     $value = apply_filters('as3cf_set_setting_' . $key, $value);
     // Remove disallowed characters from custom domain
     if ('cloudfront' === $key) {
         $value = $this->sanitize_custom_domain($value);
     }
     parent::set_setting($key, $value);
 }
 /**
  * Setter for a plugin setting with custom hooks
  *
  * @param string $key
  * @param mixed  $value
  */
 function set_setting($key, $value)
 {
     // Run class specific hooks before the setting is saved
     $this->pre_set_setting($key, $value);
     $value = apply_filters('as3cf_set_setting_' . $key, $value);
     parent::set_setting($key, $value);
 }