network_by_path_segments_count

network_by_path_segments_count

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('network_by_path_segments_count') is found 1 times:

  • /wp-includes/class-wp-network.php line 383
    			 *                           know the requested path should match a network.
    			 * @param string   $domain   The requested domain.
    			 * @param string   $path     The requested path, in full.
    			 */
    			$segments = apply_filters( 'network_by_path_segments_count', $segments, $domain, $path );
    
    			if ( ( null !== $segments ) && count( $path_segments ) > $segments ) {
    				$path_segments = array_slice( $path_segments, 0, $segments );
    			}
    
    			while ( count( $path_segments ) ) {