wpseek.com
A WordPress-centric search engine for devs and theme authors



site_by_path_segments_count › WordPress Filter Hooks

Since3.9.0
Deprecatedn/a
apply_filters( 'site_by_path_segments_count', $segments, $domain, $path )
Parameters: (3)
  • (int|null) $segments The number of path segments to consider. WordPress by default looks at one path segment following the network path. The function default of null only makes sense when you know the requested path should match a site.
    Required: Yes
  • (string) $domain The requested domain.
    Required: Yes
  • (string) $path The requested path, in full.
    Required: Yes
Defined at:
Codex:

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





Source

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