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.7.2

apply_filters('network_by_path_segments_count') is found 1 times:

  • /wp-includes/class-wp-network.php line 383
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    *                           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 ) ) {