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.


Parameters

$segments

The number of path segments to consider. ClassicPress 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

The requested domain.

$path

The requested path, in full.


Source

File: wp-includes/class-wp-network.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.9.0 Introduced.