network_site_url

network_site_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-7.0

apply_filters('network_site_url') is found 2 times:

  • /wp-includes/link-template.php line 3767
    	 *                            no path is specified.
    	 * @param string|null $scheme Scheme to give the URL context. Accepts 'http', 'https',
    	 *                            'relative' or null.
    	 */
    	return apply_filters( 'network_site_url', $url, $path, $scheme );
    }
    
    /**
     * Retrieves the home URL for the current network.
     *
     * Returns the home URL with the appropriate protocol, 'https' is_ssl()
    
  • /wp-includes/ms-load.php line 425
    			// For a "subdomain" installation, redirect to the signup form specifically.
    			$path = 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
    
    			/** This filter is documented in wp-includes/link-template.php */
    			$destination = apply_filters( 'network_site_url', $destination . $path, $path, $scheme );
    		} elseif ( $subdomain ) {
    			/*
    			 * For a "subdomain" installation, the NOBLOGREDIRECT constant
    			 * can be used to avoid a redirect to the signup form.
    			 * Using the ms_site_not_found action is preferred to the constant.
    			 */
    

See this hook used in plugins: