pre_get_network_by_path

pre_get_network_by_path

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_get_network_by_path') is found 1 times:

  • /wp-includes/class-wp-network.php line 417
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    * @param int|null              $segments The suggested number of paths to consult.
     *                                        Default null, meaning the entire path was to be consulted.
     * @param string[]              $paths    Array of paths to search for, based on `$path` and `$segments`.
     */
    $pre = apply_filters( 'pre_get_network_by_path', null, $domain, $path, $segments, $paths );
    if ( null !== $pre ) {
        return $pre;
    }
     
    if ( ! $using_paths ) {
        $networks = get_networks(