network_admin_url хук-фильтрWP 3.0.0

Filters the network admin URL.

Использование

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(строка)
The complete network admin URL including scheme and path.
$path(строка)
Path relative to the network admin URL. Blank string if no path is specified.
$scheme(строка|null)
The scheme to use. Accepts 'http', 'https', 'admin', or null.
По умолчанию: 'admin', which obeys force_ssl_admin() and is_ssl()

Список изменений

С версии 3.0.0 Введена.
С версии 5.8.0 The $scheme parameter was added.

Где вызывается хук

network_admin_url()
network_admin_url
wp-includes/link-template.php 3820
return apply_filters( 'network_admin_url', $url, $path, $scheme );

Где используется хук в WordPress

Использование не найдено.