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.

Description Description

Parameters Parameters


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


(string) The requested domain.


(string) The requested path, in full.

Top ↑

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
3.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.