WP HOOKS
filtrod 3.1.0

user_dashboard_url

Args 4Plik wp-includes/link-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the dashboard URL for a user.

Parametry

ParametrTypOpis
$urlstringThe complete URL including scheme and path.
$user_idintThe user ID.
$pathstringPath relative to the URL. Blank string if no path is specified.
$schemestringScheme to give the URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'user_dashboard_url', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}

Popularne w tej kategorii