filtrod 3.1.0
user_dashboard_url
Opis — z kodu źródłowego
Filters the dashboard URL for a user.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$url | string | The complete URL including scheme and path. |
$user_id | int | The user ID. |
$path | string | Path relative to the URL. Blank string if no path is specified. |
$scheme | string | Scheme 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
}
// 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