From 0a1232e38cab1b6593ae99fcecfee9e13bdc7f1f Mon Sep 17 00:00:00 2001 From: sgillot Date: Mon, 7 Apr 2025 17:48:13 +0200 Subject: [PATCH] add-custom-filter : as in the branch name --- mercator-domain-replacements.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mercator-domain-replacements.php b/mercator-domain-replacements.php index 544c531..4aaf2ed 100644 --- a/mercator-domain-replacements.php +++ b/mercator-domain-replacements.php @@ -65,6 +65,10 @@ public function domain_mapping_replacements() { $this->translate_sites_url(); $this->translate_network_url(); + + // Allow third-party plugins to add custom domain replacements + $this->domains = apply_filters( 'mercator_domain_replacements_custom', $this->domains ); + if ( empty( $this->domains ) ) { return; }