network_by_path_segments_count

最后更新于:2021-11-27 09:44:33

apply_filters( ‘network_by_path_segments_count’, int|null $segments, string $domain, string $path )

Filters the number of path segments to consider when searching for a site.

参数

$segments

(int|null)
The number of path segments to consider. GeChiUI by default looks at one path segment. The function default of null only makes sense when you know the requested path should match a network.

$domain

(string)
The requested domain.

$path

(string)
The requested path, in full.

源文件

文件: gc-includes/class-gc-network.php

View on Trac