RRZE-Webteam / rrze-legal

Generator für rechtliche Pflichtangaben auf einem Webauftritt.
GNU General Public License v3.0
2 stars 1 forks source link

[enhancement] Allow adding other default domains #98

Closed sebastian-schindler closed 9 months ago

sebastian-schindler commented 1 year ago

The privacy page displays some FAU-specific default text only in case of is_default_domain. However, this makes testing a new website difficult. For example, our ECAP test website lives under a different domain (web.test.ecap.work) than the live website (ecap.nat.fau.de). It would be nice if this requirement would either not be hard-coded, or if there would be a form in the plugin settings to add a domain which will be treated as if it were the default domain. Alternatively, if this is specifically not wanted (understandably), then add a warning text in the settings, that the domain of the website changes the displayed content?

rvdforst commented 9 months ago

Ich habe den Filter 'rrze_legal_fau_domains' hinzugefügt, damit die Default FAU-Domänen angepasst oder ersetzt werden können. Beispiel: add_filter( 'rrze_legal_fau_domains', fn($domains) => [...$domains, 'ecap.work'] );