network_admin_url
Filters the network admin URL.
Usage
add_filter( 'network_admin_url', 'wp_kama_network_admin_url_filter', 10, 3 ); /** * Function for `network_admin_url` filter-hook. * * @param string $url The complete network admin URL including scheme and path. * @param string $path Path relative to the network admin URL. Blank string if no path is specified. * @param string|null $scheme The scheme to use. Accepts 'http', 'https', 'admin', or null. * * @return string */ function wp_kama_network_admin_url_filter( $url, $path, $scheme ){ // filter... return $url; }
- $url(string)
- The complete network admin URL including scheme and path.
- $path(string)
- Path relative to the network admin URL. Blank string if no path is specified.
- $scheme(string|null)
- The scheme to use. Accepts 'http', 'https', 'admin', or null.
Default: 'admin', which obeys force_ssl_admin() and is_ssl()
Changelog
Since 3.0.0 | Introduced. |
Since 5.8.0 | The $scheme parameter was added. |
Where the hook is called
network_admin_url
wp-includes/link-template.php 3821
return apply_filters( 'network_admin_url', $url, $path, $scheme );