function allow_specific_sites_request_combined( $pre, $r, $url ) { $parsed_url = parse_url($url); if ( ! isset( $parsed_url[\’host\’] ) ) { return $pre; } $allowed_hosts = array_unique(array(...