Summery Summery

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

Syntax Syntax

apply_filters( 'site_by_path_segments_count', int|null $segments, string $domain, string $path )

Parameters Parameters


(int|null) 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.


(string) The requested domain.


(string) The requested path, in full.

Source Source

File: wp-includes/ms-load.php


Changelog Changelog

Version Description
3.9.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.