filtrod 3.4.0
set_url_scheme
Opis — z kodu źródłowego
Filters the resulting URL after setting the scheme.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$url | string | The complete URL including scheme and path. |
$scheme | string | Scheme applied to the URL. One of 'http', 'https', or 'relative'. |
$orig_scheme | string | null | Scheme requested for the URL. One of 'http', 'https', 'login', 'login_post', 'admin', 'relative', 'rest', 'rpc', or null. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'set_url_scheme', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'set_url_scheme', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii