/** * Returns the Headway License Key from the options or constant if define. **/ function headway_get_license_key() { if (defined('HEADWAY_LICENSE_KEY')) { return apply_filters('headway_license_key', trim(HEADWAY_LICENSE_KEY)); } return apply_filters('headway_license_key', trim(HeadwayOption::get_from_main_site('license-key'))); }