Support » Plugin: Subdomains » Allowed_redirect_hosts Issue

Viewing 1 replies (of 1 total)
  • I found this code but I still dont know where to put it.

    add_filter(‘allowed_redirect_hosts’,function($content){
    $wildcard = $_SERVER[‘HTTP_ORIGIN’];
    $wildcard = str_replace(‘http://’,”,$wildcard);
    $wildcard = str_replace(‘https://’,”,$wildcard);
    $content[] = $wildcard;
    return $content;
    });

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.