self_admin_url хук-фильтрWP 4.9.0

Filters the admin URL for the current site or network depending on context.

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

add_filter( 'self_admin_url', 'wp_kama_self_admin_url_filter', 10, 3 );

/**
 * Function for `self_admin_url` filter-hook.
 * 
 * @param string $url    The complete URL including scheme and path.
 * @param string $path   Path relative to the URL. Blank string if no path is specified.
 * @param string $scheme The scheme to use.
 *
 * @return string
 */
function wp_kama_self_admin_url_filter( $url, $path, $scheme ){

	// filter...
	return $url;
}
$url(строка)
The complete URL including scheme and path.
$path(строка)
Path relative to the URL. Blank string if no path is specified.
$scheme(строка)
The scheme to use.

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

С версии 4.9.0 Введена.

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

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

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

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