WordPress at Your Fingertips
filter is not described

network_by_path_segments_count filter-hook . WP 3.9.0

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


add_filter( 'network_by_path_segments_count', 'filter_function_name_7279', 10, 3 );
function filter_function_name_7279( $segments, $domain, $path ){
	// filter...

	return $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.
The requested domain.
The requested path, in full.


Since 3.9.0 Introduced.

Where the hook is called

wp-includes/class-wp-network.php 384
$segments = apply_filters( 'network_by_path_segments_count', $segments, $domain, $path );

Where in WP core the hook is used WordPress

Usage not found.