WordPress开发者和主题制作者的搜索引擎



network_by_path_segments_count ›

Since3.9.0
已弃用n/a
apply_filters( 'network_by_path_segments_count', $segments, $domain, $path )
参数: (3)
  • (int|null) $segments The number of path segments to consider. WordPress 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.
    Required: Yes
  • (string) $domain The requested domain.
    Required: Yes
  • (string) $path The requested path, in full.
    Required: Yes
定义在:
文档:

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





源码

$segments = apply_filters( 'network_by_path_segments_count', $segments, $domain, $path );