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

apply_filters('pre_get_network_by_path') is found 1 times:

  • /wp-includes/class-wp-network.php line 417
    		 * @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(